Update materialized views

This commit is contained in:
Correl Roush 2023-01-11 16:34:29 -05:00
parent 14e5ddaa24
commit 16a93b08d8

View file

@ -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()