sas: fix notification callback

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-10-15 11:59:54 +02:00
parent d5c6695f80
commit 578fa1495d

View File

@ -167,10 +167,10 @@ def sas_notification_callback(notif):
count = Picture.objects.filter(is_moderated=False).count() count = Picture.objects.filter(is_moderated=False).count()
if count: if count:
notif.viewed = False notif.viewed = False
notif.param = "%s" % count
notif.date = timezone.now()
else: else:
notif.viewed = True notif.viewed = True
notif.param = "%s" % count
notif.date = timezone.now()
class PeoplePictureRelation(models.Model): class PeoplePictureRelation(models.Model):
""" """