Browse Source

Fix bad indent in removeoldips management command

Rafał Pitoń 7 years ago
parent
commit
c08253d12a
1 changed files with 8 additions and 8 deletions
  1. 8 8
      misago/users/management/commands/removeoldips.py

+ 8 - 8
misago/users/management/commands/removeoldips.py

@@ -8,11 +8,11 @@ class Command(BaseCommand):
     help = "Removes users IPs stored for longer than set in MISAGO_IP_STORE_TIME."
     help = "Removes users IPs stored for longer than set in MISAGO_IP_STORE_TIME."
     
     
     def handle(self, *args, **options):
     def handle(self, *args, **options):
-      if not settings.MISAGO_IP_STORE_TIME:
-        self.stdout.write("Old IP removal is disabled.")
-        return
-      
-      remove_old_ips.send(sender=self)
-      
-      self.stdout.write(
-        "IP addresses older than {} days have been removed.".format(settings.MISAGO_IP_STORE_TIME))
+        if not settings.MISAGO_IP_STORE_TIME:
+            self.stdout.write("Old IP removal is disabled.")
+            return
+
+        remove_old_ips.send(sender=self)
+
+        self.stdout.write(
+            "IP addresses older than {} days have been removed.".format(settings.MISAGO_IP_STORE_TIME))