specified columns to update, skipped channel lookups to increase speed

This commit is contained in:
Tristan Lee
2022-12-25 14:59:11 -08:00
parent aad3e67a01
commit d80ad442da
3 changed files with 58 additions and 58 deletions

2
app.py
View File

@@ -122,7 +122,7 @@ def retransform(args):
logger.info(f"Transforming untransformed posts")
controller = get_transformer_controller()
controller.retransform_all(query_kwargs = {'platform': 'Telegram'})
controller.retransform_all(query_kwargs = {'platform': 'Telegram'}, columns = ['content', 'outlinks'])
def init_db():
engine = create_engine(os.environ["DB"])