Update app.py
Browse files
app.py
CHANGED
|
@@ -605,6 +605,7 @@ async def update_user_last_interaction(user_id: str):
|
|
| 605 |
async with async_session() as session:
|
| 606 |
result = await session.execute(
|
| 607 |
select(UserProfile).where(UserProfile.user_id == user_id)
|
|
|
|
| 608 |
profile = result.scalars().first()
|
| 609 |
if profile:
|
| 610 |
profile.last_interaction = datetime.utcnow()
|
|
|
|
| 605 |
async with async_session() as session:
|
| 606 |
result = await session.execute(
|
| 607 |
select(UserProfile).where(UserProfile.user_id == user_id)
|
| 608 |
+
)
|
| 609 |
profile = result.scalars().first()
|
| 610 |
if profile:
|
| 611 |
profile.last_interaction = datetime.utcnow()
|