Browse Source

Update cleanup script for new permissions table

merge-requests/102/head
Deimos 5 years ago
parent
commit
9ab70c440c
  1. 4
      tildes/scripts/clean_private_data.py

4
tildes/scripts/clean_private_data.py

@ -25,7 +25,7 @@ from tildes.models.comment import (
from tildes.models.group import GroupSubscription from tildes.models.group import GroupSubscription
from tildes.models.log import Log from tildes.models.log import Log
from tildes.models.topic import Topic, TopicBookmark, TopicVisit, TopicVote from tildes.models.topic import Topic, TopicBookmark, TopicVisit, TopicVote
from tildes.models.user import User, UserGroupSettings
from tildes.models.user import User, UserGroupSettings, UserPermissions
# sensitive data older than this should be removed # sensitive data older than this should be removed
@ -200,7 +200,6 @@ class DataCleaner:
"open_new_tab_group": DEFAULT, "open_new_tab_group": DEFAULT,
"open_new_tab_user": DEFAULT, "open_new_tab_user": DEFAULT,
"theme_default": DEFAULT, "theme_default": DEFAULT,
"permissions": DEFAULT,
"home_default_order": DEFAULT, "home_default_order": DEFAULT,
"home_default_period": DEFAULT, "home_default_period": DEFAULT,
"filtered_topic_tags": DEFAULT, "filtered_topic_tags": DEFAULT,
@ -226,6 +225,7 @@ class DataCleaner:
TopicBookmark, TopicBookmark,
TopicVote, TopicVote,
UserGroupSettings, UserGroupSettings,
UserPermissions,
] ]
user_id_subquery = ( user_id_subquery = (

Loading…
Cancel
Save