diff --git a/scripts/modapps.py b/scripts/modapps.py index 51e2712..cb2504f 100644 --- a/scripts/modapps.py +++ b/scripts/modapps.py @@ -4,7 +4,6 @@ One caveat is that the username field must be sanitized (i.e. ensured valid) in the CSV prior to running this script. """ - import argparse import csv from datetime import datetime, timedelta diff --git a/src/old/menuupdater.py b/src/old/menuupdater.py index 5be58c0..8fb0ea9 100644 --- a/src/old/menuupdater.py +++ b/src/old/menuupdater.py @@ -1,11 +1,7 @@ from datetime import datetime, timezone, timedelta -import re import time -import praw - import config_loader -from constants import post_constants from services import post_service, sidebar_service from utils import reddit from utils.logger import logger diff --git a/tools/db_migration/versions/20210304T042847Z_create_initial_tables_02533d88ffd0.py b/tools/db_migration/versions/20210304T042847Z_create_initial_tables_02533d88ffd0.py index 62d3946..c114e2f 100644 --- a/tools/db_migration/versions/20210304T042847Z_create_initial_tables_02533d88ffd0.py +++ b/tools/db_migration/versions/20210304T042847Z_create_initial_tables_02533d88ffd0.py @@ -5,6 +5,7 @@ Create Date: 2021-03-04 04:28:47.138468+00:00 """ + from alembic import op diff --git a/tools/db_migration/versions/20210503T174642Z_frontpage_tables_and_new_feed_tracker_a2be73588d9d.py b/tools/db_migration/versions/20210503T174642Z_frontpage_tables_and_new_feed_tracker_a2be73588d9d.py index f53a410..9dbfddd 100644 --- a/tools/db_migration/versions/20210503T174642Z_frontpage_tables_and_new_feed_tracker_a2be73588d9d.py +++ b/tools/db_migration/versions/20210503T174642Z_frontpage_tables_and_new_feed_tracker_a2be73588d9d.py @@ -5,6 +5,7 @@ Create Date: 2021-05-03 17:46:42.655713+00:00 """ + from alembic import op diff --git a/tools/db_migration/versions/20211109T022238Z_add_traffic_tables_ef9e7017d686.py b/tools/db_migration/versions/20211109T022238Z_add_traffic_tables_ef9e7017d686.py index f0051a1..78982f9 100644 --- a/tools/db_migration/versions/20211109T022238Z_add_traffic_tables_ef9e7017d686.py +++ b/tools/db_migration/versions/20211109T022238Z_add_traffic_tables_ef9e7017d686.py @@ -5,6 +5,7 @@ Create Date: 2021-11-09 02:22:38.435818+00:00 """ + from alembic import op # revision identifiers, used by Alembic. diff --git a/tools/db_migration/versions/20220531T030117Z_add_post_metadata_a35048950546.py b/tools/db_migration/versions/20220531T030117Z_add_post_metadata_a35048950546.py index cb23703..6a3d5bc 100644 --- a/tools/db_migration/versions/20220531T030117Z_add_post_metadata_a35048950546.py +++ b/tools/db_migration/versions/20220531T030117Z_add_post_metadata_a35048950546.py @@ -5,6 +5,7 @@ Create Date: 2022-05-31 03:01:17.890458+00:00 """ + from alembic import op # revision identifiers, used by Alembic. diff --git a/tools/db_migration/versions/20220924T210009Z_add_indexes_for_comments_post_id__d36823f77b1f.py b/tools/db_migration/versions/20220924T210009Z_add_indexes_for_comments_post_id__d36823f77b1f.py index 8ba631e..6bb52f4 100644 --- a/tools/db_migration/versions/20220924T210009Z_add_indexes_for_comments_post_id__d36823f77b1f.py +++ b/tools/db_migration/versions/20220924T210009Z_add_indexes_for_comments_post_id__d36823f77b1f.py @@ -5,6 +5,7 @@ Create Date: 2022-09-24 21:00:09.062636+00:00 """ + from alembic import op diff --git a/tools/db_migration/versions/20220924T220837Z_add_deleted_time_column_to_posts_03f4360f81fc.py b/tools/db_migration/versions/20220924T220837Z_add_deleted_time_column_to_posts_03f4360f81fc.py index 44b6200..5cd4e15 100644 --- a/tools/db_migration/versions/20220924T220837Z_add_deleted_time_column_to_posts_03f4360f81fc.py +++ b/tools/db_migration/versions/20220924T220837Z_add_deleted_time_column_to_posts_03f4360f81fc.py @@ -5,6 +5,7 @@ Create Date: 2022-09-24 22:08:37.600621+00:00 """ + from alembic import op