Fred808 commited on
Commit
418923b
·
verified ·
1 Parent(s): c8c04d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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()