This commit is contained in:
Aevann1 2022-03-17 18:18:49 +02:00
parent b2fcee68a9
commit a41b80c1f0

View file

@ -61,7 +61,7 @@ def notifications(v):
x.read = True x.read = True
c.unread = True c.unread = True
g.db.add(x) g.db.add(x)
c.notif_utc = x.created_utc if x.created_utc > 1620391248: c.notif_utc = x.created_utc
listing.append(c) listing.append(c)
g.db.commit() g.db.commit()
@ -85,7 +85,7 @@ def notifications(v):
try: c = comments[i] try: c = comments[i]
except: continue except: continue
if not x.read: c.unread = True if not x.read: c.unread = True
c.notif_utc = x.created_utc if x.created_utc > 1620391248: c.notif_utc = x.created_utc
x.read = True x.read = True
g.db.add(x) g.db.add(x)
i += 1 i += 1