fix it lol

This commit is contained in:
Aaron Kimbre 2022-07-12 18:06:41 -05:00
parent 21b6932f48
commit d7333490d1

View File

@ -169,10 +169,10 @@ def delete(id):
UGC.query.filter(UGC.id == prop.ugc_id).first().delete() UGC.query.filter(UGC.id == prop.ugc_id).first().delete()
prop_content.delete() prop_content.delete()
prop.delete() prop.delete()
char.delete()
friends = Friends.query.filter(or_(Friends.player_id == char.id, Friends.friend_id == char.id)).all() friends = Friends.query.filter(or_(Friends.player_id == char.id, Friends.friend_id == char.id)).all()
for friend in friends: for friend in friends:
friend.delete() friend.delete()
char.delete()
# This is for GM stuff, it will be permnently delete logs # This is for GM stuff, it will be permnently delete logs
bugs = BugReport.query.filter(BugReport.resoleved_by_id == id).all() bugs = BugReport.query.filter(BugReport.resoleved_by_id == id).all()
for bug in bugs: for bug in bugs: