Skip to content

Commit 1491723

Browse files
authored
Merge pull request #85 from appwrite/dev
fix: minor bugs
2 parents 35c17ae + 127418f commit 1491723

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Python SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-python.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.5.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.5.6-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

appwrite/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def __init__(self):
1313
self._endpoint = 'https://cloud.appwrite.io/v1'
1414
self._global_headers = {
1515
'content-type': '',
16-
'user-agent' : 'AppwritePythonSDK/5.0.2 (${os.uname().sysname}; ${os.uname().version}; ${os.uname().machine})',
16+
'user-agent' : 'AppwritePythonSDK/5.0.3 (${os.uname().sysname}; ${os.uname().version}; ${os.uname().machine})',
1717
'x-sdk-name': 'Python',
1818
'x-sdk-platform': 'server',
1919
'x-sdk-language': 'python',
20-
'x-sdk-version': '5.0.2',
20+
'x-sdk-version': '5.0.3',
2121
'X-Appwrite-Response-Format' : '1.5.0',
2222
}
2323

appwrite/enums/credit_card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class CreditCard(Enum):
44
AMERICAN_EXPRESS = "amex"
55
ARGENCARD = "argencard"
66
CABAL = "cabal"
7-
CONSOSUD = "censosud"
7+
CENCOSUD = "cencosud"
88
DINERS_CLUB = "diners"
99
DISCOVER = "discover"
1010
ELO = "elo"

appwrite/enums/flag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class Flag(Enum):
142142
PALAU = "pw"
143143
PAPUA_NEW_GUINEA = "pg"
144144
POLAND = "pl"
145+
FRENCH_POLYNESIA = "pf"
145146
NORTH_KOREA = "kp"
146147
PORTUGAL = "pt"
147148
PARAGUAY = "py"

appwrite/enums/runtime.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Runtime(Enum):
2020
PYTHON_3_10 = "python-3.10"
2121
PYTHON_3_11 = "python-3.11"
2222
PYTHON_3_12 = "python-3.12"
23+
PYTHON_ML_3_11 = "python-ml-3.11"
2324
DENO_1_40 = "deno-1.40"
2425
DART_2_15 = "dart-2.15"
2526
DART_2_16 = "dart-2.16"

appwrite/services/messaging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def create_email(self, message_id, subject, content, topics = None, users = None
5353
'content-type': 'application/json',
5454
}, api_params)
5555

56-
def update_email(self, message_id, topics = None, users = None, targets = None, subject = None, content = None, draft = None, html = None, cc = None, bcc = None, scheduled_at = None):
56+
def update_email(self, message_id, topics = None, users = None, targets = None, subject = None, content = None, draft = None, html = None, cc = None, bcc = None, scheduled_at = None, attachments = None):
5757
"""Update email"""
5858

5959

@@ -74,6 +74,7 @@ def update_email(self, message_id, topics = None, users = None, targets = None,
7474
api_params['cc'] = cc
7575
api_params['bcc'] = bcc
7676
api_params['scheduledAt'] = scheduled_at
77+
api_params['attachments'] = attachments
7778

7879
return self.client.call('patch', api_path, {
7980
'content-type': 'application/json',

docs/examples/messaging/update-email.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ result = messaging.update_email(
1818
html = False, # optional
1919
cc = [], # optional
2020
bcc = [], # optional
21-
scheduled_at = '' # optional
21+
scheduled_at = '', # optional
22+
attachments = [] # optional
2223
)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'appwrite/encoders',
1414
'appwrite/enums',
1515
],
16-
version = '5.0.2',
16+
version = '5.0.3',
1717
license='BSD-3-Clause',
1818
description = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API',
1919
long_description = long_description,
@@ -23,7 +23,7 @@
2323
maintainer = 'Appwrite Team',
2424
maintainer_email = 'team@appwrite.io',
2525
url = 'https://appwrite.io/support',
26-
download_url='https://github.com/appwrite/sdk-for-python/archive/5.0.2.tar.gz',
26+
download_url='https://github.com/appwrite/sdk-for-python/archive/5.0.3.tar.gz',
2727
install_requires=[
2828
'requests',
2929
],

0 commit comments

Comments
 (0)