Fix some historic indentation mistakes
authorMagnus Hagander <magnus@hagander.net>
Fri, 15 Jul 2022 11:14:10 +0000 (13:14 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 15 Jul 2022 11:14:49 +0000 (13:14 +0200)
pgweb/core/management/commands/fetch_rss_feeds.py
pgweb/util/signals.py

index 0ce0b1473138de1fb4903d39fcff415dd1a4df9b..afa6880b7c7c9a665321d6a437a81c10a2c7874d 100644 (file)
@@ -49,6 +49,6 @@ class Command(BaseCommand):
                             fetchedsomething = True
 
                     if fetchedsomething:
-                            importfeed.purge_related()
+                        importfeed.purge_related()
                 except Exception as e:
                     print("Failed to load %s: %s" % (importfeed, e))
index 0552ea33526b285bef3e4f4eeb6dee15b234b50d..8b69dd880de8faa9ee46cfa14b7e82601e0519fd 100644 (file)
@@ -84,11 +84,11 @@ def _get_notification_text(obj):
                 _get_full_text_representation(obj))
 
     if hasattr(obj, 'approved') or hasattr(obj, 'modstate'):
-            # This object has the capability to do approving. Apply the following logic:
-            # 1. If object was unapproved, and is still unapproved, don't send notification
-            # 2. If object was unapproved, and is now approved, send "object approved" notification
-            # 3. If object was approved, and is no longer approved, send "object unapproved" notification
-            # 4. (FIXME: configurable?) If object was approved and is still approved, send changes notification
+        # This object has the capability to do approving. Apply the following logic:
+        # 1. If object was unapproved, and is still unapproved, don't send notification
+        # 2. If object was unapproved, and is now approved, send "object approved" notification
+        # 3. If object was approved, and is no longer approved, send "object unapproved" notification
+        # 4. (FIXME: configurable?) If object was approved and is still approved, send changes notification
 
         if hasattr(obj, 'approved'):
             approved = obj.approved