Commit Graph

14 Commits

Author SHA1 Message Date
f94fe23f60
move executable cli file outside of package structure 2023-07-05 19:01:08 +02:00
8a2774bf93
add cli option to download all games 2023-07-05 18:49:35 +02:00
b3828baa5d
configure cache to store exported games forever 2023-07-05 18:48:19 +02:00
932340431f
Handle invalid player numbers on export
On hanab.live, some games have an invalid number of players
stored in the database, this leads to some games not being
able to be exported from the site.
We catch these cases and write occurrences to a local data file
2023-07-05 18:47:09 +02:00
f8ff2411a0
Check for correct number of players earlier. Add CLI for downloading
games
2023-07-05 16:46:14 +02:00
3c2c73d00b
fix check for num_players in download routine 2023-07-05 16:31:10 +02:00
b9068eebe4
implement cli command to init database 2023-07-05 09:33:55 +02:00
184129fca0
improve error handling when downloading games: Throw proper assertions, assume nothing about returned data 2023-07-05 09:00:03 +02:00
fabcc9ceb2
Cache variants.json and suits.json files 2023-07-04 22:30:56 +02:00
6190a156f4
reformat file 2023-07-04 22:19:18 +02:00
17195a17ad
Use appropriate app_dirs for cache and log files 2023-07-04 22:09:28 +02:00
a93601c997
Refactor imports, remove code in imported files
We now only use relative imports for files in the same directory
Also, only modules are imported, never classes/functions etc
Furthermore, main methods in package files have been removed,
since they do not belong there
2023-07-04 21:15:33 +02:00
6ae72a4b03
Adapt imports to new package structure 2023-07-04 18:53:18 +02:00
05e1822c3d
refactor files into proper submodules (not functional yet) 2023-07-04 18:52:59 +02:00