Skip to content

Commit

Permalink
make it positional args with default []
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanssen2 committed Sep 5, 2017
1 parent 0885960 commit 1f3d488
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions amgut/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_survey_question_id(key):
survey.store_survey(consent_details, with_fk_inserts, without_fk_inserts)


def survey_vioscreen(survey_id, consent_info, internal_surveys):
def survey_vioscreen(survey_id, consent_info, internal_surveys=[]):
"""Return a formatted text block and URL for the external survey"""
tl = text_locale['human_survey_completed.html']
embedded_text = tl['SURVEY_VIOSCREEN']
Expand All @@ -137,15 +137,15 @@ def survey_vioscreen(survey_id, consent_info, internal_surveys):
return embedded_text % url


def survey_asd(survey_id, consent_info, internal_surveys):
def survey_asd(survey_id, consent_info, internal_surveys=[]):
"""Return a formatted text block and URL for the external survey"""
tl = text_locale['human_survey_completed.html']
url = media_locale['SURVEY_ASD_URL'] % {'survey_id': survey_id}
embedded_text = tl['SURVEY_ASD']
return embedded_text % url


def survey_fermented(survey_id, consent_info, internal_surveys):
def survey_fermented(survey_id, consent_info, internal_surveys=[]):
"""Return a formatted text block and URL for the external survey"""
tl = text_locale['human_survey_completed.html']
existing_surveys = [survey[1]
Expand All @@ -163,7 +163,7 @@ def survey_fermented(survey_id, consent_info, internal_surveys):
return embedded_text % url


def survey_surf(survey_id, consent_info, internal_surveys):
def survey_surf(survey_id, consent_info, internal_surveys=[]):
"""Return a formatted text block and URL for the external survey"""
tl = text_locale['human_survey_completed.html']
existing_surveys = [survey[1]
Expand Down

0 comments on commit 1f3d488

Please sign in to comment.