grandlyon: add explicite update_storage() calls to copy-wcs (#64625)

This commit is contained in:
Frédéric Péters 2022-04-27 20:58:40 +02:00
parent ebe218ee01
commit 003e834577
1 changed files with 5 additions and 0 deletions

View File

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