Commit Graph
20 Commits
Author SHA1 Message Date
norohind c71c42c08e Fix after vanguard update 2025-08-19 17:21:01 +00:00
norohind 6711b2dd80 use pool 2024-08-27 23:43:24 +02:00
norohind f389804558 Implement hook system 2022-05-22 14:54:34 +03:00
norohind ee575a726a Migrating to new DB schema (WIP) 2022-04-03 23:41:13 +03:00
norohind c129c3d1bf Add get_latest_leaderboard 2022-01-31 20:04:23 +03:00
norohind 6d0b78dca1 model fix: rollback transaction on fail 2022-01-31 14:13:51 +03:00
norohind dd8f2754e9 web: optimization 2022-01-17 01:26:01 +03:00
norohind 3d22b716bd @errors_catcher for model.get_leaderboard_by_action_id 2021-12-19 00:35:35 +03:00
norohind d1ec8b2b69 fix leaderboard by action_id 2021-12-15 21:31:24 +03:00
norohind 3f1efe0ac7 WIP: leaderboard state by action_id 2021-12-15 12:10:21 +03:00
norohind 5360ab2e31 WIP: model.get_leaderboard_sum_history and all appropriate stuff 2021-12-10 00:56:48 +03:00
norohind 0c64bde728 remove context manager self.db for read request 2021-12-09 01:00:07 +03:00
norohind ebefef349d Autoreconnect on error 2021-11-30 17:33:46 +03:00
norohind fdaa579ec0 Read reqs in postgres should be in transactions
In order to prevent break whole program instance by one failed request
2021-11-28 18:29:48 +03:00
norohind d30bc56c9e Took out env vars extracting to config.py 2021-11-28 16:57:55 +03:00
norohind 145cb8a19b Remove more hardcoded secrets 2021-11-28 14:07:39 +03:00
norohind 702ab34154 Add logging for models 2021-11-28 14:03:39 +03:00
norohind 1a692df820 Abstract model for support both DBMS 2021-11-28 03:18:41 +03:00
norohind 089451745c Remove hardcoded values 2021-11-28 02:36:52 +03:00
norohind b5d0c43b7e WIP: migration from sqlite to postgres 2021-11-28 02:28:31 +03:00