Skip to content

Commit

Permalink
Merge branch 'apluslms:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelGusse authored Aug 5, 2024
2 parents 08e1baa + 9679c4e commit d6092c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercise/cache/basetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ def _generate_data(

exercise_info = lobj.exercise_info
has_submittable_files = (
exercise_info
and exercise_info['form_spec']
bool(exercise_info)
and exercise_info.get('form_spec')
and isinstance(exercise_info['form_spec'], list)
and any(map(lambda item: item.get('type') == 'file', exercise_info['form_spec']))
)
Expand Down

0 comments on commit d6092c0

Please sign in to comment.