Show More
@@ -59,8 +59,14 b' class Command(BaseCommand):' | |||||
59 | else: |
|
59 | else: | |
60 | logger.info('Running LIST request...') |
|
60 | logger.info('Running LIST request...') | |
61 | h = httplib2.Http() |
|
61 | h = httplib2.Http() | |
|
62 | ||||
|
63 | tags = [] | |||
|
64 | tags_str = options.get('tags') | |||
|
65 | if tags_str: | |||
|
66 | tags = tags_str.split(',') | |||
|
67 | ||||
62 | xml = SyncManager.generate_request_list( |
|
68 | xml = SyncManager.generate_request_list( | |
63 |
opening_post=options.get('thread'), tags= |
|
69 | opening_post=options.get('thread'), tags=tags).encode() | |
64 | response, content = h.request(list_url, method="POST", body=xml) |
|
70 | response, content = h.request(list_url, method="POST", body=xml) | |
65 | if response.status != 200: |
|
71 | if response.status != 200: | |
66 | raise Exception('Server returned error {}'.format(response.status)) |
|
72 | raise Exception('Server returned error {}'.format(response.status)) |
General Comments 0
You need to be logged in to leave comments.
Login now