Skip to content

Commit

Permalink
fix: db update
Browse files Browse the repository at this point in the history
Fixes commit bed1244 in #152.
  • Loading branch information
Adamantios committed Nov 21, 2023
1 parent 73c4054 commit 7f158de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def end_block(self) -> Optional[Tuple[BaseSynchronizedData, Enum]]:
if synced_data.period_count == 0:
# necessary for persisted keys to function properly and not raise an exception when the first period ends
update = {
db_key: getattr(synced_data.db, db_key, None)
db_key: synced_data.db.get(db_key, None)
for db_key in RedeemRound.selection_key
}
synced_data.db.update(**update)
Expand Down

0 comments on commit 7f158de

Please sign in to comment.