@errors_catcher for model.get_leaderboard_by_action_id

This commit is contained in:
norohind 2021-12-19 00:35:35 +03:00
parent d1ec8b2b69
commit 3d22b716bd
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -167,6 +167,7 @@ class PostgresModel(AbstractModel):
return result
@errors_catcher
def get_leaderboard_by_action_id(self, action_id: int) -> list[dict]:
cache_key = f'leaderboard_by_action_id_{action_id}'