Latest black changed some formatting, re-run it.

This commit is contained in:
Jennifer Taylor
2023-02-17 03:40:07 +00:00
parent bf9bf16ddd
commit eaf07ddf6a
103 changed files with 96 additions and 230 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ class ProfileObject(BaseObject):
# Now, fetch the users, and filter out profiles belonging to orphaned users
retval: List[Dict[str, Any]] = []
id_to_cards: Dict[UserID, List[str]] = {}
for (userid, profile) in profiles:
for userid, profile in profiles:
if userid not in id_to_cards:
cards = self.data.local.user.get_cards(userid)
if len(cards) == 0:
+1 -1
View File
@@ -306,7 +306,7 @@ class RecordsObject(BaseObject):
# Now, fetch the users, and filter out scores belonging to orphaned users
id_to_cards: Dict[UserID, List[str]] = {}
retval: List[Dict[str, Any]] = []
for (userid, record) in records:
for userid, record in records:
# Postfilter for queries that can't filter. This will save on data transferred.
if since is not None:
if record.update < since:
+1 -1
View File
@@ -182,7 +182,7 @@ class StatisticsObject(BaseObject):
) -> List[Dict[str, Any]]:
stats: Dict[UserID, Dict[int, Dict[int, Dict[str, int]]]] = {}
for (userid, attempt) in attempts:
for userid, attempt in attempts:
if userid not in stats:
stats[userid] = {}
if attempt.id not in stats[userid]: