From 699df5f6d474c04978e8cb8cd5f2b11f4990c3af Mon Sep 17 00:00:00 2001 From: Deimos Date: Thu, 22 Nov 2018 16:19:29 -0700 Subject: [PATCH] Deleted post cleanup: add missing fields Some new fields have been added to comments and topics recently (excerpt, original_url), but they weren't added to the cleanup script yet. There was also no reason to keep information about whether the posts had been edited or not. --- tildes/scripts/clean_private_data.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tildes/scripts/clean_private_data.py b/tildes/scripts/clean_private_data.py index 230e0cf..4e857ca 100644 --- a/tildes/scripts/clean_private_data.py +++ b/tildes/scripts/clean_private_data.py @@ -91,7 +91,13 @@ class DataCleaner: Comment.user_id != 0, ) .update( - {"user_id": 0, "markdown": "", "rendered_html": ""}, + { + "user_id": 0, + "last_edited_time": None, + "markdown": "", + "rendered_html": "", + "excerpt": "", + }, synchronize_session=False, ) ) @@ -113,11 +119,13 @@ class DataCleaner: .update( { "user_id": 0, + "last_edited_time": None, "title": "", "topic_type": "TEXT", "markdown": None, "rendered_html": None, "link": None, + "original_url": None, "content_metadata": None, "_tags": [], },