1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Use actual load as the filter we use is more complex to load from cache currently

This commit is contained in:
phxntxm 2017-06-07 13:54:00 -05:00
parent dbe5cf6110
commit b0a965031f

View file

@ -101,7 +101,7 @@ async def update_records(key, db, winner, loser):
# We're using the Harkness scale to rate
# http://opnetchessclub.wikidot.com/harkness-rating-system
r_filter = lambda row: (row['member_id'] == str(winner.id)) | (row['member_id'] == str(loser.id))
matches = db.load(key, table_filter=r_filter)
matches = await db.actual_load(key, table_filter=r_filter)
winner_stats = {}
loser_stats = {}