Skip to content

Commit

Permalink
fix for loading saves
Browse files Browse the repository at this point in the history
  • Loading branch information
EphDoering committed Oct 19, 2024
1 parent a272178 commit abf4b1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions save_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def save_time(file):
def get_sorted_saves():
try:
all_files = os.listdir(SAVES)
zip_files = [f for f in all_files if f.lower().endswith('.zip')]
zip_files = [f for f in all_files if f.lower().endswith(".zip")]
zip_files.sort(reverse=True, key=save_time)
return zip_files
except:
Expand All @@ -36,7 +36,7 @@ def get_sorted_saves():
def get_menu_saved_games():
games = get_sorted_saves()
return {
save[:-4] + " " + get_elapsed_time(save_time(save)) + " ago": save
save[:-4] + " " + get_elapsed_time(save_time(save)) + " ago": (save,)
for save in games
}

Expand Down

0 comments on commit abf4b1e

Please sign in to comment.