Update server.py

This commit is contained in:
Justin 2023-08-17 18:11:43 +08:00 committed by GitHub
parent 049a9c0f7b
commit 748d4191ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -374,7 +374,8 @@ def index():
f.close()
except:
place_settings = {"feature": "Place", "speed": "medium", "speed2": "medium", "animation": "up", "title": True, "width": "128", "pause": "0", "places": ["r/place 2017", "r/place 2022"]}
with open('csv/place_settings.json', 'w') as f:
json.dump(place_settings, f)
try:
f = open('csv/market_settings.json', 'r')
market_settings = json.load(f)