Skip to content

Commit

Permalink
back(profile): update last connection on fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
t-h2o authored and RobinBurri committed Dec 18, 2024
1 parent d43eb45 commit 5ae5e9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/matcha/services/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 5ae5e9b

Please sign in to comment.