Skip to content

Commit

Permalink
can't leave well enough alone lol
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Sep 27, 2023
1 parent e5fabe6 commit 0ebf48b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/delete-unused-users.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ async def main():
except:
print(user['last_activity'])
raise

last_activity = asyncio
if isinstance(last_activity, datetime):
was_active_last_day = datetime.now().astimezone() - last_activity < timedelta(hours=24)
else:
activity_type = type(last_activity)
print(f"For user {user['name']}, expected datetime.datetime class for last_activity but got {activity_type} instead.")
print(f"For user {user['name']}, expected datetime.datetime class for last_activity but got {type(last_activity)} instead.")
raise

print(f"User: {user['name']}")
Expand Down

0 comments on commit 0ebf48b

Please sign in to comment.