Update materialized views
This commit is contained in:
parent
14e5ddaa24
commit
16a93b08d8
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue