Skip to content

Commit

Permalink
minor fx
Browse files Browse the repository at this point in the history
  • Loading branch information
futurewarning committed Sep 22, 2021
1 parent 276fc5c commit f79e0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_versioning/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def update_database(cls, collections, prev_version):
for user in collections['users'].find():
criteria_dt = Checks(user['criteria']).get_checks()
upd_criteria = {k: False if v == -1 else True for k, v in criteria_dt.items()}
upd_criteria['slides_number'] = {"sld_num": [10, 12], "detect_additional": True} if upd_criteria['slides_number'] else False
upd_criteria['slides_number'] = {"sld_num": criteria_dt['slides_number'], "detect_additional": True} if upd_criteria['slides_number'] else False
collections['users'].update(
{'_id': user['_id']},
{'$set': {'criteria': upd_criteria}}
Expand Down

0 comments on commit f79e0fd

Please sign in to comment.