Commit Graph

255 Commits

Author SHA1 Message Date
Dawid Wysokiński fe21fa5a94 update Dockerfile 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 198a436b15 update allVersionsPGInsertStatements 2020-11-18 12:53:32 +01:00
Dawid Wysokiński c640446d03 Update README.md 2020-11-18 12:53:32 +01:00
Dawid Wysokiński f1a32a0293 correct typo 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 0ee1555782 correct typo 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 7c978243e8 add LICENSE, update DOCKERFILE 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 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
Dawid Wysokiński 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
Dawid Wysokiński 408296ae5b add readme.md 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 6327450a0b fix typos 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 692de15a51 remove allservers cache 2020-11-18 12:53:32 +01:00
Dawid Wysokiński efc51d5060 cron should clear all servers cache 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 5ab238139b cron should cache all servers for api middleware 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 9b8488e64f optimization 2020-11-18 12:53:32 +01:00
Dawid Wysokiński df1c27e277 fix bug with 0 best rank 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 73eb7114c7 bump github.com/tribalwarshelp/shared 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 6753e5c61e cron should log tribe change on insert too 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 88a9860ac5 bump github.com/tribalwarshelp/shared 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 547faefe55 bump github.com/tribalwarshelp/shared 2020-11-18 12:53:32 +01:00
Dawid Wysokiński d18506700d updateServersData should not stop after error 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 237f870abc fix typo, add a new constant - serverPGDefaulValues 2020-11-18 12:52:04 +01:00
Dawid Wysokiński 5c069c919f fix bug with saving best rank (lower rank should be better) 2020-11-18 12:51:57 +01:00
Dawid Wysokiński f53d427bf7 small performance fix 2020-11-18 12:51:57 +01:00
Dawid Wysokiński c2afb2144a improve performance, bump github.com/tribalwarshelp/shared 2020-11-18 12:51:57 +01:00
Dawid Wysokiński 9c78f11b51 optimize updateServerData 2020-11-18 12:51:57 +01:00
Dawid Wysokiński d90c603aa9 rename package to github.com/tribalwarshelp/cron | change number of updating servers concurrently 2020-11-18 12:51:57 +01:00
Dawid Wysokiński f659fc9bc3 bump github.com/tribalwarshelp/shared 2020-11-18 12:51:57 +01:00
Dawid Wysokiński a213f2cfcd bump github.com/tribalwarshelp/shared 2020-11-18 12:51:57 +01:00
Dawid Wysokiński b0244869d1 refactor 2020-11-18 12:51:57 +01:00
Dawid Wysokiński 15bc841486 uncomment h.updateServersData() 2020-11-18 12:51:57 +01:00
Dawid Wysokiński ed8dd20dd8 add database vacuum cleaner, move all sql statements to separate file, cron saves daily player/tribe stats 2020-11-18 12:51:43 +01:00
Dawid Wysokiński 7bca0d25e5 add 2 new triggers, one logs player name change, second sets deleted_at | bump github.com/tribalwarshelp/shared 2020-11-18 12:51:15 +01:00
Dawid Wysokiński bf958c88b6 dominance is now expressed as a percentage 2020-11-18 12:51:15 +01:00
Dawid Wysokiński 0f15d12daa bump github.com/tribalwarshelp/shared 2020-11-18 12:51:15 +01:00
Dawid Wysokiński ba72affcfb bump github.com/tribalwarshelp/shared, add a new trigger that inserts player_id and server_key to player_to_servers table 2020-11-18 12:50:49 +01:00
Dawid Wysokiński 829c45db31 cron saves and calculates player.daily_growth 2020-11-18 12:49:45 +01:00
Dawid Wysokiński e9ecec51e8 cron should not store special servers in db, bump github.com/tribalwarshelp/shared 2020-11-18 12:49:45 +01:00
Dawid Wysokiński 542b6301b0 create a new instance of http.Client with timeout 2020-11-18 12:49:20 +01:00
Dawid Wysokiński a90daa1886 bump github.com/tribalwarshelp/shared 2020-11-18 12:49:20 +01:00
Dawid Wysokiński 0ee2f8f52d tribe dominance should be calculated based on the number of player villages, a number of barbarian villages should include a number of bonus villages (server stats) 2020-11-18 12:43:08 +01:00
Dawid Wysokiński 1a07278d62 bump github.com/tribalwarshelp/shared 2020-11-18 12:43:08 +01:00
Dawid Wysokiński 5509ffded0 cron fetches conquers and saves server stats and history, bump github.com/tribalwarshelp/shared 2020-11-18 12:42:34 +01:00
Dawid Wysokiński ed14e23638 bump github.com/tribalwarshelp/shared 2020-06-19 18:33:54 +02:00
Dawid Wysokiński 755da7f9e6 bump github.com/tribalwarshelp/shared 2020-06-19 18:02:42 +02:00
Dawid Wysokiński fc6d815404 fetch server config/unit_config/building_config 2020-06-19 17:42:38 +02:00
Dawid Wysokiński 80baa079e2 fix bug with empty string 2020-06-18 17:56:07 +02:00
Dawid Wysokiński 2c669bf778 rename file server_handler -> update_server_data_handler, rename struct serverHandler -> updateServerDataHandler 2020-06-18 13:02:15 +02:00
Dawid Wysokiński 803dc9b9c2 bump github.com/tribalwarshelp/shared 2020-06-02 17:47:36 +02:00
Dawid Wysokiński 2a5a1d916c cron should update tribe.AllPoints too 2020-06-02 12:30:03 +02:00
Dawid Wysokiński 1203c574dd fix concurrency bug 2020-06-02 12:09:32 +02:00