From 2517d6784a7950b90e47ce6d3574758eb47fa88c Mon Sep 17 00:00:00 2001 From: Gerni <47844854+mgerni@users.noreply.github.com> Date: Mon, 8 Dec 2025 18:59:59 -0500 Subject: [PATCH] add tip to api --- taskapp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/taskapp.py b/taskapp.py index b82a69a..3282a48 100644 --- a/taskapp.py +++ b/taskapp.py @@ -155,6 +155,7 @@ def decorated(*args, **kwargs): def api_login(): auth = request.authorization if not auth or not auth.username or not auth.password: + print("Test") return make_response({'message': 'Could not verify'}, 401, {'WWW.Authentication': 'Basic realm: "login required"'}) coll = db['users'] user = coll.find_one({'username': auth.username}, {'_id': 0}) @@ -173,7 +174,7 @@ def api_login(): def api_current_task(user): current_task = get_taskCurrent(user.username) if current_task: - return jsonify({'message': {'taskName': current_task[0], 'taskImage': current_task[6]}}) + return jsonify({'message': {'taskName': current_task[0], 'taskImage': current_task[6], 'taskTip': current_task[4]}}) return jsonify({'message': None}) @app.route('/api/v1/resource/task_progress')