Skip to content

Commit

Permalink
Merge branch 'NES-1015' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassiano R. N. dos Santos committed May 4, 2020
2 parents 6aebdb0 + 0e83dd7 commit 398a403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions patientregistrationsystem/qdc/experiment/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def __init__(self):
(
':' + settings.PORTAL_API['PORT'] if
settings.PORTAL_API['PORT'] else ''
) \
+ '/api/schema/'
) + '/api/schema/'

self.schema = self.client.get(url)
self.active = True
Expand Down
8 changes: 7 additions & 1 deletion patientregistrationsystem/qdc/experiment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,12 @@ def experiment_schedule_of_sending(request, experiment_id,
new_schedule.experiment = experiment
new_schedule.responsible = request.user
new_schedule.status = "scheduled"
# TODO: Error on sending "Enviar para o Portal":
# After schedulling sending to portal and clicking on button
# "Enviar para o Portal" gives error. Something like
# "'on' must be True or False". Appears to get 'on' from
# 'send_age' from form, and when saving new_schedule the value
# end_participante_age shoud be True or False
send_age = request.POST.get('send_age')
new_schedule.send_participant_age = send_age if send_age else False
new_schedule.save()
Expand Down Expand Up @@ -8554,7 +8560,7 @@ def get_experimental_protocol_image(experimental_protocol, tree, url=False):
errors, path_complete = create_directory(settings.MEDIA_ROOT, "temp")

try:
graph.write_svg(path.join(path_complete, file_name))
graph.write(path.join(path_complete, file_name), format='png')
except:
return None

Expand Down

0 comments on commit 398a403

Please sign in to comment.