Commit Graph

197 Commits

Author SHA1 Message Date
1af38e200f bump github.com/tribalwarshelp/shared 2021-01-16 20:55:11 +01:00
60e2b58fbf remove 2 log.Infofs 2021-01-15 22:11:03 +01:00
4655d2b892 handler.updateServerEnnoblements uses its own pool 2021-01-15 20:08:48 +01:00
c093d35a3b
Merge pull request #1 from tribalwarshelp/fetch-ennoblements-separately
fetch ennoblements separately from other server data
2021-01-15 18:29:54 +01:00
a4da69e085 - update github.com/tribalwarshelp/shared
- add a new worker - updateServerEnnoblementsWorker
- delete the updateServerDataWorker.loadEnnoblements method
2021-01-15 18:25:13 +01:00
20bfc7e8da bump github.com/tribalwarshelp/shared and update some error messages 2021-01-13 20:27:20 +01:00
54502843cc [update_most_points_most_villages_best_rank_last_activity] fix player.last_activity condition 2021-01-09 17:10:00 +01:00
909d3491af bump github.com/tribalwarshelp/shared, update triggers and how we create schemas for servers 2021-01-09 15:26:04 +01:00
7cb285b924 fix bug with player_id = null in 'player_changes' table 2021-01-07 05:54:07 +01:00
0e119a6c66 bump github.com/tribalwarshelp/shared and go-pg 2021-01-06 17:40:58 +01:00
95abc4231c bump github.com/tribalwarshelp/shared 2021-01-01 16:17:39 +01:00
ea07784eca add support for the Slovak version 2021-01-01 15:38:51 +01:00
fb0dbc15c0 remove unnecessary check 2021-01-01 14:21:54 +01:00
fdb90d5a87 bugfixes 2020-12-31 08:33:56 -05:00
4fe3c3bcd8 fix error with doubled timezones, fix 'timezone' field 2020-12-31 02:34:06 +01:00
a1d45ebf2d one connection pool for handler 2020-12-31 01:45:10 +01:00
7aa730b7d4 change updateStats and updateHistory time initialization 2020-12-31 00:06:46 +01:00
10f735075c BREAKING CHANGE - run updateStats and updateHistory separately for each version 2020-12-30 23:57:23 +01:00
30fe501f2f tidy go mod 2020-12-30 17:12:22 +01:00
66f202a613 bump github.com/tribalwarshelp/shared 2020-12-30 17:08:51 +01:00
88a8db8575 delete player/tribe history and daily player/tribe stats records that are older than 180 days or when a player hasn't logged in for 14 days after the deletion 2020-12-28 13:10:07 +01:00
a7be1449fa delete player/tribe history and daily player/tribe stats records that are older than 180 days or when a player hasn't logged in for 14 days after the deletion 2020-12-28 13:09:54 +01:00
9d0bd7831d make running cron jobs on startup optional 2020-12-23 17:52:04 +01:00
a95c40399c update README.md, set tribe_id = 0 when flagging a player as deleted 2020-12-23 17:46:05 +01:00
31ba00a004 remove unnecessary import 2020-12-22 18:21:52 +01:00
0bc1cdbd94 make db pool size configurable 2020-12-22 18:20:30 +01:00
b2d4135372 fix duplicate name changes, delete unneeded function (updateServerDataWorker.parseEnnoblementLine) 2020-12-04 20:22:12 +01:00
56de789835 handler no longer closes a pool 2020-11-18 12:54:20 +01:00
b694d73532 update readme.md 2020-11-18 12:54:20 +01:00
c4a281bc76 bump github.com/tribalwarshelp/shared 2020-11-18 12:54:19 +01:00
0344c6a239 refactor: move data fetching logic to separate package 2020-11-18 12:54:19 +01:00
505cac4de7 remove unnecessary return 2020-11-18 12:54:19 +01:00
4b3a652f71 changed error messages 2020-11-18 12:54:19 +01:00
92adb94132 update tribalwarshelp/shared package, performance improvements 2020-11-18 12:54:19 +01:00
31c7dc52b3 uncomment unnecessary commented lines 2020-11-18 12:54:19 +01:00
1ef0ee381f log system improved, performance improvements 2020-11-18 12:54:19 +01:00
ad8cdc6926 delete readme.md, add the option to download data for more than one server at the same time 2020-11-18 12:54:19 +01:00
fc0af6a9f3 csv reader shouldn't return error about lazy quotes from now, lang versions are sorted alphabetically 2020-11-18 12:54:19 +01:00
8bec38dae5 improve handler.vacuumDatabase, handler.updateServersStats, handler.updateHistory performance 2020-11-18 12:54:19 +01:00
1fd2d805f9 update README.md 2020-11-18 12:54:19 +01:00
9ef0130e6d change a naming convention, add 'master' server to special servers, updateServerDataWorker fallbacks to not gzipped file 2020-11-18 12:53:32 +01:00
2a96dd4aee add missing lang versions and their special servers 2020-11-18 12:53:32 +01:00
fe21fa5a94 update Dockerfile 2020-11-18 12:53:32 +01:00
198a436b15 update allVersionsPGInsertStatements 2020-11-18 12:53:32 +01:00
c640446d03 Update README.md 2020-11-18 12:53:32 +01:00
f1a32a0293 correct typo 2020-11-18 12:53:32 +01:00
0ee1555782 correct typo 2020-11-18 12:53:32 +01:00
7c978243e8 add LICENSE, update DOCKERFILE 2020-11-18 12:53:32 +01:00
a052ed8575 add LICENSE and README.md, cron now inserts all versions and all special servers into the database 2020-11-18 12:53:32 +01:00
56146c989c cron shouldn't set the server status to closed for a version that hasn't been loaded 2020-11-18 12:53:32 +01:00