From 9ab70c440c5099c669d03f6f83f80d9f1b625251 Mon Sep 17 00:00:00 2001 From: Deimos Date: Sat, 29 Feb 2020 14:45:41 -0700 Subject: [PATCH] Update cleanup script for new permissions table --- tildes/scripts/clean_private_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tildes/scripts/clean_private_data.py b/tildes/scripts/clean_private_data.py index 3ad6424..452b77e 100644 --- a/tildes/scripts/clean_private_data.py +++ b/tildes/scripts/clean_private_data.py @@ -25,7 +25,7 @@ from tildes.models.comment import ( from tildes.models.group import GroupSubscription from tildes.models.log import Log 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 @@ -200,7 +200,6 @@ class DataCleaner: "open_new_tab_group": DEFAULT, "open_new_tab_user": DEFAULT, "theme_default": DEFAULT, - "permissions": DEFAULT, "home_default_order": DEFAULT, "home_default_period": DEFAULT, "filtered_topic_tags": DEFAULT, @@ -226,6 +225,7 @@ class DataCleaner: TopicBookmark, TopicVote, UserGroupSettings, + UserPermissions, ] user_id_subquery = (