Skip to content

Commit

Permalink
when attachment is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Shiva Reddy committed May 21, 2021
1 parent 60c3723 commit 4d53d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions QRealTime_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ def getTable(self,XFormKey,importData,topElement,layer,version= 'null'):
for submission in data['results']:
submission['ODKUUID']=submission['meta/instanceID']
subTime=submission['_submission_time']
binar_url=""
for attachment in submission['_attachments']:
binar_url=attachment['download_url']
subTime_datetime=datetime.datetime.strptime(subTime,'%Y-%m-%dT%H:%M:%S')
Expand Down

0 comments on commit 4d53d0b

Please sign in to comment.