refactoring
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 12s

This commit is contained in:
2026-01-18 21:56:19 -05:00
parent 904185e5c8
commit 59b480621e
6 changed files with 428 additions and 26 deletions

View File

@@ -38,7 +38,11 @@ def get_task(id):
@task_api.route('/task/list', methods=['GET'])
def list_tasks():
ids_param = request.args.get('ids')
tasks = task_db.all()
if ids_param:
ids = set(ids_param.split(','))
tasks = [task for task in tasks if task.get('id') in ids]
return jsonify({'tasks': tasks}), 200
@task_api.route('/task/<id>', methods=['DELETE'])