Skip to content

Commit

Permalink
del code double
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev-semyon committed Jul 13, 2023
1 parent 1d157b6 commit 4a976b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions userdata_api/utils/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ async def get_user_info(user_id: int, user: dict[str, int | list[dict[str, str |
if info.param.type == ViewType.ALL:
param_dict[info.param].append(info)
elif (param_dict[info.param] is None) or (
(
info.param.type == ViewType.LAST
and (param_dict[info.param] is None or info.create_ts > param_dict[info.param].create_ts)
)
(info.param.type == ViewType.LAST and info.create_ts > param_dict[info.param].create_ts)
or (
info.param.type == ViewType.MOST_TRUSTED
and (
Expand Down

0 comments on commit 4a976b2

Please sign in to comment.