Skip to content

Commit

Permalink
FIX: bug with fetching questions when not CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
dalmia committed Mar 20, 2021
1 parent e28549d commit a2ac0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def fetch_items_from_sources(items: List[Dict]):
updated_items.append(item)

if not problem_ids:
return items
return {"status": "success", "items": items}

cms_response = fetch_items_from_cms(problem_ids, items_to_update)
if cms_response["status"] == "error":
Expand Down

0 comments on commit a2ac0a6

Please sign in to comment.