Dawid Wysokiński
f4cb4c1f20
update ServerConfigGame.FakeLimit (int -> float64)
2022-02-18 11:17:29 +01:00
Dawid Wysokiński
6efa1a4f61
use buildURL for fallbacks
2021-07-17 11:44:29 +02:00
Dawid Wysokiński
e9473847ca
fix: add fallback to not gzziped version
2021-07-17 11:28:47 +02:00
Dawid Wysokiński
8763e0013d
fix: missing protocol scheme in VersionDataloader
2021-07-17 11:13:14 +02:00
Dawid Wysokiński
5030d62000
ServerDataLoader.LoadOD - replace fmt.Sprintf with string concatenation
2021-07-17 09:05:14 +02:00
Dawid Wysokiński
ee20d129af
add TestLoadEnnoblements
2021-07-17 07:49:16 +02:00
Dawid Wysokiński
4e82ae6bed
rename a few fields in the handlers struct and add two new (conquer, getConquer)
2021-07-17 07:20:22 +02:00
Dawid Wysokiński
77e67c83dd
add TestLoadVillages
2021-07-17 07:08:00 +02:00
Dawid Wysokiński
db02f8c4ae
add TestLoadTribes
2021-07-17 06:48:57 +02:00
Dawid Wysokiński
1de6302b52
add more scenarios to TestLoadPlayers
2021-07-17 06:36:00 +02:00
Dawid Wysokiński
25c3a4f2bc
add more scenarios to TestLoadOD, add one more test - TestLoadPlayers
2021-07-17 06:23:37 +02:00
Dawid Wysokiński
f30ef110da
add scenarios to TestLoadOD
2021-07-14 06:40:58 +02:00
Dawid Wysokiński
6e3d32648d
fix one typo
2021-07-13 16:47:11 +02:00
Dawid Wysokiński
3a2ea77dd7
Merge branch 'master' into feat/add-tests
...
# Conflicts:
# tw/twdataloader/server_data_loader.go
2021-07-13 16:46:46 +02:00
Dawid Wysokiński
ef3e1dd459
ServerDataLoader - remove fallbacks to not gzziped files
2021-07-13 16:43:19 +02:00
Dawid Wysokiński
4613155d5d
add server_data_loader_test.go
2021-07-13 16:40:29 +02:00
Dawid Wysokiński
1248c0d7db
prepareTestServer refactor
2021-07-13 16:26:53 +02:00
Dawid Wysokiński
a2e82ef96b
VersionDataLoader.LoadServer doesn't need https://
2021-07-13 15:58:21 +02:00
Dawid Wysokiński
477970b0a6
use w.Write instead of fmt.Fprintln
2021-07-13 15:44:44 +02:00
Dawid Wysokiński
232d9caad3
add more checks in VersionDataLoader.LoadServers, add more tests
2021-07-13 11:09:59 +02:00
Dawid Wysokiński
de68ea117b
add version_data_loader_test.go
2021-07-13 07:30:45 +02:00
Dawid Wysokiński
ab964b7c34
refactor: return types, not interfaces
2021-07-13 06:24:10 +02:00
Dawid Wysokiński
fcef062f6b
bump github.com/Kichiyaki/gopgutil/v10
2021-05-21 22:50:55 +02:00
Dawid Wysokiński
bf85190fd6
add one more relation to PlayerHistoryFilter.WhereWithRelations (Player.Tribe)
2021-05-05 19:24:13 +02:00
Dawid Wysokiński
9aa09097fd
add one more relation to DailyPlayerStatsFilter.WhereWithRelations (Player.Tribe)
2021-05-05 19:15:18 +02:00
Dawid Wysokiński
8f3c5a71b8
register models in orm
2021-05-05 19:02:52 +02:00
Dawid Wysokiński
79d8dc1929
fix two grammar mistakes
2021-05-05 13:34:09 +02:00
Dawid Wysokiński
7ae8606da1
appendFilters: only append relation if this relation hasn't been added
2021-05-05 13:31:01 +02:00
Dawid Wysokiński
102ae553be
refactor appending filters
2021-05-05 13:14:50 +02:00
Dawid Wysokiński
dbe43f2ad7
bump github.com/Kichiyaki/gopgutil
2021-05-05 12:01:17 +02:00
Dawid Wysokiński
742945be9f
separate the config for ServerDataLoader and VersionDataLoader
2021-05-03 16:50:38 +02:00
Dawid Wysokiński
117175dd77
use reflect in the twmodel.isZero function
2021-05-02 15:38:08 +02:00
Dawid Wysokiński
b5464a6da5
huge refactor, rename some of the packages
...
models:
- remove most of the helpers and use github.com/Kichiyaki/gopgutil/v10
- remove relationship/sort appenders
- add a new model - Coords and a new constructor for this model - ParseCoords
2021-05-02 15:35:24 +02:00
Dawid Wysokiński
47373e8171
remove one of the packages - 'Mode'
2021-05-02 13:24:03 +02:00
Dawid Wysokiński
128bb40de4
rename dataloader.DataLoader -> dataloader.ServerDataLoader, add a new dataloader to the tw/dataloader package - VersionDataLoader
2021-05-02 10:05:10 +02:00
Dawid Wysokiński
e70c73a3fa
refactor, add two new packages tw/urlbuilder and tw/twutil
...
tw/dataloader:
- Move endpoints to the new file
- use errors.New instead of fmt.Errorf
- new error messages
2021-05-02 09:44:49 +02:00
Dawid Wysokiński
d8d19c3e65
[tw/dataloader] restore fallback to not gziped file
2021-01-16 20:52:35 +01:00
Dawid Wysokiński
972e2df3f7
rename LoadEnnoblementsConfig.EnnobledAtGTE -> LoadEnnoblementsConfig.EnnobledAtGT
2021-01-15 17:34:15 +01:00
Dawid Wysokiński
14fc5c3a7a
[tw/dataloader]: don't fallback to not gzipped file, refactor
2021-01-15 17:26:03 +01:00
Dawid Wysokiński
c747617519
[dataloader] update error messages
2021-01-13 20:25:28 +01:00
Dawid Wysokiński
6c4f27f3d2
rename models.LangVersion -> models.Version
2020-11-06 19:04:34 +01:00
Dawid Wysokiński
5d4d8b3077
feat: add tw package
2020-10-31 11:57:53 +01:00