Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
put everything in one single file
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQuan committed Jan 25, 2022
1 parent 1208ddd commit 38184b0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extract_game_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def splitFirst(long_string: str):
print(len(ships))

# save this to extra as well
writeToJson(ships, 'extra/ships.json')
# writeToJson(ships, 'extra/ships.json')

# %%
# upgrade, NO LONGER NEEDED
Expand Down
18 changes: 18 additions & 0 deletions update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from update_cached_data import *
from extract_game_params import *

if __name__ == '__main__':
print('Updating cached data...')
if not os.path.exists('cache'):
os.mkdir('cache')
download_game_params()
unzip_game_params()
get_ship_battles_raw()
print('Done.')

print('Extracting game parameters...')
writeAll()
writeExtra()
merge_all()
os.system('npx prettier --write .')
print('Done.')

0 comments on commit 38184b0

Please sign in to comment.