forked from rDrama/rDrama
if /h/programming assimilates, move its posts to /h/slackernews
parent
5e52a86500
commit
7d317e1fa8
|
@ -90,7 +90,11 @@ def _sub_inactive_purge_task():
|
||||||
|
|
||||||
posts = g.db.query(Submission).filter(Submission.sub.in_(names)).all()
|
posts = g.db.query(Submission).filter(Submission.sub.in_(names)).all()
|
||||||
for post in posts:
|
for post in posts:
|
||||||
|
if post.sub == 'programming':
|
||||||
|
post.sub = 'slackernews'
|
||||||
|
else:
|
||||||
post.sub = None
|
post.sub = None
|
||||||
|
|
||||||
post.hole_pinned = None
|
post.hole_pinned = None
|
||||||
g.db.add(post)
|
g.db.add(post)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue