mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-10-03 20:37:59 +03:00
Latest black changed some formatting, re-run it.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user