better task complete animation
This commit is contained in:
6
app.py
6
app.py
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user