Skip to content

Commit a109412

Browse files
committed
regen
1 parent 71cf3e0 commit a109412

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

appwrite/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import json
33
import os
44
import platform
5+
import sys
56
import requests
67
from .input_file import InputFile
78
from .exception import AppwriteException
@@ -120,7 +121,7 @@ def call(self, method, path='', headers=None, params=None, response_type='json')
120121
warnings = response.headers.get('x-appwrite-warning')
121122
if warnings:
122123
for warning in warnings.split(';'):
123-
print(f'Warning: {warning}')
124+
print(f'Warning: {warning}', file=sys.stderr)
124125

125126
content_type = response.headers['Content-Type']
126127

appwrite/query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ def order_asc(attribute):
7979
def order_desc(attribute):
8080
return str(Query("orderDesc", attribute, None))
8181

82+
@staticmethod
83+
def order_random():
84+
return str(Query("orderRandom", None, None))
85+
8286
@staticmethod
8387
def cursor_before(id):
8488
return str(Query("cursorBefore", None, id))

0 commit comments

Comments
 (0)