Skip to content

Commit

Permalink
Merge pull request #5076 from moschlar/patch-1
Browse files Browse the repository at this point in the history
Update delete-unused-users.py
  • Loading branch information
shaneknapp authored Sep 27, 2023
2 parents e5b2353 + d70fe4f commit d724316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/delete-unused-users.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def main():
except:
print(user['last_activity'])
raise
if last_activity and datetime.now().astimezone() - last_activity < timedelta(hours=24) and user['server'] is not None:
if last_activity and datetime.now().astimezone() - last_activity < timedelta(hours=24) or user['server'] is not None:
print(f"Not deleting {user['name']}")
else:
to_delete.append(user['name'])
Expand Down

0 comments on commit d724316

Please sign in to comment.