Skip to content

Commit

Permalink
update(backend/endpoint): Implemented execution for query update last…
Browse files Browse the repository at this point in the history
…_search
  • Loading branch information
Bidijoe45 committed Aug 23, 2022
1 parent b6a266e commit 2ffe616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/endpoint/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def index(self, login: str) -> Response:
})

user_id = result[0]
update(User).values({"last_search": datetime.utcnow()}).where(User.id == user_id)
session.execute(update(User).values({"last_search": datetime.utcnow()}).where(User.id == user_id))
time: dict = self.get_time(user_id)

payload: dict = {
Expand Down

0 comments on commit 2ffe616

Please sign in to comment.