grandlyon: add explicite update_storage() calls to copy-wcs (#64625)
This commit is contained in:
parent
ebe218ee01
commit
003e834577
|
@ -2,6 +2,7 @@
|
|||
# usage: sudo -u wcs /usr/bin/wcsctl -f /etc/wcs/wcs-au-quotidien.cfg runscript --vhost=demarches-<...>.guichet-recette.grandlyon.com copy-wcs.py Oullins Genay
|
||||
|
||||
from quixote import get_publisher
|
||||
from wcs.carddef import CardDef
|
||||
from wcs.formdef import FormDef
|
||||
|
||||
import json
|
||||
|
@ -62,3 +63,7 @@ for formdef in FormDef.select():
|
|||
if orig_city in formdef.name:
|
||||
formdef.name = formdef.name.replace(orig_city, dest_city)
|
||||
formdef.store()
|
||||
formdef.update_storage()
|
||||
|
||||
for carddef in CardDef.select():
|
||||
carddef.update_storage()
|
||||
|
|
Loading…
Reference in New Issue