diff --git a/tutor/cli.py b/tutor/cli.py index 07528a4..46a064f 100644 --- a/tutor/cli.py +++ b/tutor/cli.py @@ -300,6 +300,10 @@ def update_scryfall(ctx, filename): , "tix" = "excluded"."tix" """ ) + print("Updating materialized views") + await cursor.execute('UPDATE MATERIALIZED VIEW "cards"') + await cursor.execute('UPDATE MATERIALIZED VIEW "oracle_latest"') + await tutor.database.store_var(cursor, "last_update", str(today)) await conn.commit()