Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: [PYTHON] boolean in FormData #440

Merged
merged 1 commit into from
May 9, 2022

Conversation

Meldiron
Copy link
Contributor

@Meldiron Meldiron commented May 6, 2022

Currently, if you pass True or Falseinto multiform data, it fails.
This has already been addressed in Node, so I am adding the same fix to Python..

Related issues: appwrite/appwrite#3169

QA code:

from appwrite.client import Client
from appwrite.services.users import Users
from appwrite.services.functions import Functions

client = Client()

(client
  .set_endpoint('https://8080-appwrite-appwrite-....gitpod.io/v1') # Your API Endpoint
  .set_project('...') # Your project ID
  .set_key('...') # Your secret API key
)

func = Functions(client)

result = func.create_deployment('6275052b0a821a3ca033', 'index.py', 'code.tar.gz', True)

print(result)

Results:
CleanShot 2022-05-06 at 13 37 37

@Meldiron
Copy link
Contributor Author

Meldiron commented May 6, 2022

I can confirm this issue is NOT there in:

  • PHP
  • Ruby
  • Deno

SDKs yet to test:

  • Dart
  • Swift
  • Java
  • Kotlin

@TorstenDittmann TorstenDittmann merged commit 0e8a69e into master May 9, 2022
@TorstenDittmann TorstenDittmann deleted the fix-python-activate-param branch May 9, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants