Skip to content

Commit

Permalink
Add pylint skip
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <[email protected]>
  • Loading branch information
toomore committed Jul 31, 2024
1 parent da2d363 commit 780dde5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from structs.users import UserAddress, UserBank, UserProfle, UserProfleRealBase


class User:
class User: # pylint: disable=too-many-public-methods
''' User
Args:
Expand Down Expand Up @@ -428,15 +428,15 @@ def marshal_dietary_habit(user_infos: dict[str, Any]) -> Generator[dict[str, Any
@staticmethod
def get_dietary_habit_statistics(uids: list[str]) -> dict[str, int]:
''' Get dietary habit statistics by given uids '''
result: dict[str, int] = { }
result: dict[str, int] = {}

for item in DietaryHabitItemsName:
result[item.value] = 0

user_infos = User.get_info(uids=uids)
for user_info in user_infos.values():
if "profile_real" not in user_info or \
"dietary_habit" not in user_info["profile_real"]:
"dietary_habit" not in user_info["profile_real"]:
continue

for habit in user_info["profile_real"]["dietary_habit"]:
Expand Down

0 comments on commit 780dde5

Please sign in to comment.