Skip to content

Commit

Permalink
remove extra vars from logic
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Sep 27, 2023
1 parent 8c5f8e0 commit 1918138
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 @@ -51,7 +51,7 @@ async def main():
print(f"Last login: {last_activity}")
print(f"24hrs since last login: {was_active_last_day}")
print(f"Running server: {user['server']}")
if (last_activity and was_active_last_day) or (user['server'] is not None):
if was_active_last_day or user['server'] is not None:
print(f"Not deleting {user['name']}")
else:
to_delete.append(user['name'])
Expand Down

0 comments on commit 1918138

Please sign in to comment.