From 1918138e9da9422f6483ff6f1c22a99fae2b7a73 Mon Sep 17 00:00:00 2001 From: shane knapp Date: Wed, 27 Sep 2023 15:45:15 -0700 Subject: [PATCH] remove extra vars from logic --- scripts/delete-unused-users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/delete-unused-users.py b/scripts/delete-unused-users.py index 315d32a23..1192750e5 100755 --- a/scripts/delete-unused-users.py +++ b/scripts/delete-unused-users.py @@ -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'])