Commit 578fa149 authored by Skia's avatar Skia 🤘
Browse files

sas: fix notification callback


Signed-off-by: Skia's avatarSkia <skia@libskia.so>
parent d5c6695f
Pipeline #1361 passed with stage
in 5 minutes and 48 seconds
......@@ -167,10 +167,10 @@ def sas_notification_callback(notif):
count = Picture.objects.filter(is_moderated=False).count()
if count:
notif.viewed = False
notif.param = "%s" % count
notif.date = timezone.now()
else:
notif.viewed = True
notif.param = "%s" % count
notif.date = timezone.now()
class PeoplePictureRelation(models.Model):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment