better task complete animation

This commit is contained in:
2026-02-11 13:01:25 +01:00
parent 1a570e0969
commit ac6095a899
2 changed files with 107 additions and 34 deletions

6
app.py
View File

@@ -95,14 +95,12 @@ def sync_check():
entry_id = str(current_entry['_id']) if current_entry else 'none'
# Create simple hash of tasks (IDs joined string)
# If a task is completed, it drops from this list -> hash changes -> client reloads
# Return list of IDs for smart diffing on frontend
task_ids = sorted([str(t['_id']) for t in active_tasks])
tasks_hash = ','.join(task_ids)
return jsonify({
'entry_hash': entry_id,
'tasks_hash': tasks_hash
'task_ids': task_ids
})
@app.route('/register', methods=['GET', 'POST'])