Skip to content

Commit

Permalink
Fix gen_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfy76700 committed Nov 21, 2024
1 parent 7cf141d commit 826bc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gen_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def process_game(game):
def process_asset_dir(game, assetDir, path, config):
try:
assetPath = "./games/" + game + "/" + assetDir + "/"
modified = True if float(config.get("version", 0)) > float(
modified = True if str(config.get("version", 0)) != str(
lastVersions.get(f'{game}.{assetDir}', 0)) else False
lastVersions[f'{game}.{assetDir}'] = config.get("version", 0)

Expand All @@ -59,7 +59,7 @@ def process_asset_dir(game, assetDir, path, config):
# ["rm " + path + "/" + assetDir + ".7z*"], shell=True)
# delete_old_zips.communicate()

print(">" + assetPath)
print("!=" + assetPath)
print("Was modified", modified)

with open(assetPath + "config.json", 'r', encoding='utf-8') as configFile:
Expand Down

0 comments on commit 826bc46

Please sign in to comment.