make house holes immune from deletion

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-03 20:22:16 -07:00 committed by GitHub
parent 7c1eb4c6e3
commit 7defcd07cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ def sub_inactive_purge_task():
Submission.private == False, Submission.is_banned == False,
Submission.deleted_utc == 0).all()]
active_holes.append('changelog') # system hole immune from deletion
active_holes.append('furry') # house holes immune from deletion
active_holes.append('vampire')
active_holes.append('racist')
active_holes.append('femboy')
dead_holes = g.db.query(Sub).filter(Sub.name.notin_(active_holes)).all()
names = [x.name for x in dead_holes]