Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

FIX answer file key - #442

Merged
asamolion merged 17 commits into
developfrom
osama/LP-845
Apr 28, 2018
Merged

asamolion merged 17 commits into
developfrom
osama/LP-845

Conversation

@asamolion

Copy link
Copy Markdown

No description provided.

return ""
else:
return ""
return ora_file_upload_api.get_download_url(answer['file_key'])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can write the same code as following

if answer.get('file_key'):
    return ora_file_upload_api.get_download_url(answer['file_key'])
return ""

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@asamolion
asamolion merged commit 2369161 into develop Apr 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants