Skip to content

Commit

Permalink
Merge pull request #33 from rodekruis/fix.fspquestions-list-not-defined
Browse files Browse the repository at this point in the history
fix create fspquestionslist not defined if outside loop
  • Loading branch information
tijsziere committed May 6, 2024
2 parents e0f4b4d + 38cc9e2 commit 885c8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,10 @@ async def create_121_program_from_kobo(request: Request, dependencies=Depends(re
print('Missing hidden fields in the template: ', MISSINGFIELDS)

lookupdict = dict(zip(survey['name'], survey['default']))
fspquestions = []

if 'tags' in survey.columns:
dedupedict = dict(zip(survey['name'], survey['tags']))
fspquestions = []

for key, value in dedupedict.items():
if isinstance(value, list) and any('fsp' in item for item in value):
Expand Down

0 comments on commit 885c8ce

Please sign in to comment.