Skip to content

Commit

Permalink
Remove typed parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Nov 11, 2023
1 parent d32d6dc commit 6ff9af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/repositories/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def fetch_count(exclude_restricted=True) -> int:

return query.scalar()

@ttl_cache(typed=True, ttl=2*60)
@ttl_cache(ttl=2*60)
def fetch_many(user_ids: tuple, *options) -> List[DBUser]:
return app.session.database.session.query(DBUser) \
.options(*[selectinload(item) for item in options]) \
Expand Down

0 comments on commit 6ff9af5

Please sign in to comment.