fds
This commit is contained in:
parent
ff919ec9f0
commit
f7fcefebd6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
if not c.created_utc: c.notif_utc = x.notif_utc
|
if not c.created_utc: 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
|
||||||
if not c.created_utc: c.notif_utc = x.notif_utc
|
if not c.created_utc: c.notif_utc = x.created_utc
|
||||||
x.read = True
|
x.read = True
|
||||||
g.db.add(x)
|
g.db.add(x)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue