Skip to content
Snippets Groups Projects
Commit 3f9e309d authored by Carlos Vega's avatar Carlos Vega
Browse files

Merge branch 'hotfix/import_file' into fix/import_file

parents bc8f4c6c c5ce8a3a
No related branches found
Tags v0.12.1
1 merge request!184Fix/import file
......@@ -35,7 +35,7 @@ def workers_for_daily_planning(request):
role = unicode(worker.roles.filter(study_id=GLOBAL_STUDY_ID)[0].role)
worker_dict_for_json = {
'id': worker.id,
'flags' : [language.image.url for language in worker.languages.all()],
'flags' : [language.image.url for language in worker.languages.all() if language.image],
'availability': worker.availability_percentage(start_date=start_date),
'title': u"{} ({})".format(unicode(worker), role[:1].upper()),
'role': role
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment