From 5ae5e9b6db9073f8e57f54536a3612a2c5187e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=7C=C2=B0=5F=C2=B0=7C?= Date: Tue, 17 Dec 2024 20:48:28 +0100 Subject: [PATCH] back(profile): update last connection on fetch --- backend/matcha/services/profile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/matcha/services/profile.py b/backend/matcha/services/profile.py index cb113b5a..b898be58 100644 --- a/backend/matcha/services/profile.py +++ b/backend/matcha/services/profile.py @@ -7,6 +7,8 @@ from matcha.utils import check_request_json +from matcha.db.last_connection import db_update_last_connection + from matcha.db.pictures import db_get_user_images, db_get_url_profile from matcha.db.visit import db_put_visit, db_get_visit @@ -71,6 +73,8 @@ def services_profile(id_user, request): elif "error" in profile_picture: profile_url = url = profile_picture["error"] + db_update_last_connection(id_user) + return ( jsonify( username=user_db[0],