init depot renew
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: UTF-8 -*-
|
||||
from pycen import con_sicen
|
||||
|
||||
def refresh_vm():
|
||||
sql = "REFRESH MATERIALIZED VIEW saisie.vm_synthese_observations WITH DATA;"
|
||||
with con_sicen.begin() as cnx:
|
||||
cnx.execute(sql)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
refresh_vm()
|
||||
Reference in New Issue
Block a user