Skip to content

Commit 0b81ca4

Browse files
committed
commenting / clarifying the file list parameter for order_create
1 parent 8c1517a commit 0b81ca4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

onesky/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ def order_create(self, project_id,
257257
specialization=None,
258258
note=None):
259259
relative_url = 'projects/{}/orders'.format(project_id)
260-
params = {'files': str(files),
260+
261+
# NOTE: it looks like 'files' should be a comma-separate string,
262+
# despite the documentation giving the example ['string.po']. In other
263+
# words, it should just be "string.po" or "string1.po,string2.po". I
264+
# know the former case works, anyway -- haven't yet tested the latter.
265+
params = {'files': files,
261266
'to_locale': to_locale,
262267
'order_type': order_type,
263268
'is_including_not_translated': is_including_not_translated,

0 commit comments

Comments
 (0)