diff --git a/app.py b/app.py index 368dd6d..74e7cd4 100644 --- a/app.py +++ b/app.py @@ -12,7 +12,7 @@ def update_file(): if os.path.isfile('compiti.json'): with open('compiti.json', 'r') as f: compiti = json.load(f) - id_counter = 104 + id_counter = compiti[-1]["id"] + 1 else: compiti = [ {"id": 1, "descrizione": "Compito matematica"},