59 Commits

Author SHA1 Message Date
d37b836975
Fix if null value for lb type and platform in model 2021-12-01 01:38:27 +03:00
8107895c52
Explicit rename tag to Tag column 2021-12-01 01:34:56 +03:00
d483040901
Fix new_stats.name for deleted squadrons 2021-12-01 01:30:16 +03:00
ebefef349d
Autoreconnect on error 2021-11-30 17:33:46 +03:00
c1678b8d8d
Show entries with Diff < 0 (in theory, deleted squads) 2021-11-30 17:08:20 +03:00
2b8931d9a8
remove migration script 2021-11-30 16:54:39 +03:00
09d3f86c00
Remove support for sqlite 2021-11-30 16:54:16 +03:00
36bb3a78eb
fix /diff when squad starts to exists in leaderboard 2021-11-30 16:20:51 +03:00
b0003fb153
front: put table in div 2021-11-30 02:05:37 +03:00
8b0c458b8d
Diff: tag as hyperlink to jub 2021-11-29 21:04:18 +03:00
926609f29e
Unifyin activity_table_html_template 2021-11-29 14:32:50 +03:00
cebe77cc09
Frontend table builder performance impoves 2021-11-29 00:48:21 +03:00
7d132ecb5f
Fix env CACHE_DISABLED to bool converting 2021-11-28 21:46:49 +03:00
2e3c6983b0
Fix cache drop by http request 2021-11-28 20:37:42 +03:00
bacd5ac7fd
Verbose logging on request fail 2021-11-28 19:59:23 +03:00
e6345cbd41
sqlite2postgres: cli interface 2021-11-28 19:21:12 +03:00
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
e822cd06c9
Return original columns names for postgres 2021-11-28 17:58:13 +03:00
c84588959b
sqlite2postgres: sqlite location as env var 2021-11-28 17:26:48 +03:00
787a03db4f
Took out env vars reading from utils to config 2021-11-28 17:25:09 +03:00
b056aeba2a
Measure exec time only on DEBUG log level 2021-11-28 17:18:42 +03:00
4ab06f00de
Update comment with usage help 2021-11-28 17:16:45 +03:00
3757cc1b07
call open_model must be done by web.py and main.py by themself 2021-11-28 17:11:47 +03:00
d30bc56c9e
Took out env vars extracting to config.py 2021-11-28 16:57:55 +03:00
803b6cce7c
Add continues pull from sqlite to postgres 2021-11-28 14:43:52 +03:00
145cb8a19b
Remove more hardcoded secrets 2021-11-28 14:07:39 +03:00
702ab34154
Add logging for models 2021-11-28 14:03:39 +03:00
1a692df820
Abstract model for support both DBMS 2021-11-28 03:18:41 +03:00
bfd2f785a9
sqlite_cache safety 2021-11-28 02:38:56 +03:00
089451745c
Remove hardcoded values 2021-11-28 02:36:52 +03:00
b5d0c43b7e
WIP: migration from sqlite to postgres 2021-11-28 02:28:31 +03:00
a5218db824
@utils.measure decorator for debug purposes 2021-11-27 00:51:28 +03:00
b9d65cac7f
MovedPermanently / -> /index.html 2021-11-25 17:15:29 +03:00
636443e097
Move static to common static folder 2021-11-25 17:04:28 +03:00
9fa8bb8712
add .gitignore 2021-11-25 17:03:01 +03:00
7762874b8a
add small doc on /index.html 2021-11-25 17:02:39 +03:00
6a8acdc55a
Remove static files serving class 2021-11-25 16:16:20 +03:00
7495ebd460
took out static files 2021-11-25 15:19:07 +03:00
2c5bfc143f
add script for uwsgi config create 2021-11-25 14:46:42 +03:00
93c1afcb92
RESTful URLs for frontend part 2 2021-11-25 13:02:18 +03:00
04f62d77fe
RESTful URLs for frontend 2021-11-25 12:57:21 +03:00
919395cb5d
Clarify for web: timestamp in UTC 2021-11-25 00:33:49 +03:00
7a8f722064
remove useless consts 2021-11-23 20:55:25 +03:00
765e2db863
dont propagate logger 2021-11-23 20:52:43 +03:00
211a91110f
Add caching for sql reqs results 2021-11-23 18:43:27 +03:00
4b0fc375a9
web.py: add application var for uwsgi 2021-11-21 18:46:36 +03:00
b1a0424ac6
order by TotalExperienceDiff desc in diff action_id 2021-11-21 18:01:56 +03:00
2520573a77
redirect from /{var} to /leaderboard/{var} 2021-11-21 17:23:39 +03:00
e9ccdd0404
/{leaderboard} -> /leaderboard/{leaderboard} 2021-11-21 17:19:49 +03:00
bce2f9dd4d
make action_id clickable -> to diff page 2021-11-21 17:17:46 +03:00