aboutsummaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-09 05:45:04 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-09 05:45:04 +0100
commiteb3d067e2636cd9f0864256cbd4590b1a6d07337 (patch)
treece6b65af1eeb40827dfc57f0c2a328524fb66c08 /app/utils.py
parentdb80c441ec8543bdf92984db0b64bda584cd45a7 (diff)
downloadcheatdb-eb3d067e2636cd9f0864256cbd4590b1a6d07337.tar.xz
Fix crash on addNotification non-iterable
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/utils.py b/app/utils.py
index 67b4015..cd386d4 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -190,7 +190,7 @@ def is_package_page(f):
def addNotification(target, causer, title, url):
- if not isinstance(target, User):
+ if isinstance(target, Iterable):
for x in target:
addNotification(x, causer, title, url)
return