print info before sending
This commit is contained in:
parent
e7cec4cc46
commit
6290e253c6
1 changed files with 1 additions and 1 deletions
|
@ -714,6 +714,7 @@ class Client(object):
|
|||
|
||||
def update_info(self, info, prefix=None):
|
||||
if info:
|
||||
print 'sending info for %d files' % len(info)
|
||||
post = {'info': {}, 'upload': True}
|
||||
post['info'] = self.get_info_for_ids(info, prefix)
|
||||
r = self.api.update(post)
|
||||
|
@ -723,7 +724,6 @@ class Client(object):
|
|||
while t['data']['status'] == 'PENDING':
|
||||
time.sleep(5)
|
||||
t = self.api.taskStatus(task_id=r['data']['taskId'])
|
||||
print 'sent info for %s files' % len(post['info'])
|
||||
#send empty list to get updated list of requested info/files/data
|
||||
post = {'info': {}}
|
||||
r = self.api.update(post)
|
||||
|
|
Loading…
Reference in a new issue