summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2022-04-27 18:58:40 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2022-04-27 18:58:40 (GMT)
commit003e83457798cc17220f41891cdf1ed9d9568f97 (patch)
treebd7fa3073ff921d0f3493e409058a69a3e780d58
parentebe218ee01b2e2b04bf6571e02aaf8bf6a8d103d (diff)
downloadmisc-fred-003e83457798cc17220f41891cdf1ed9d9568f97.zip
misc-fred-003e83457798cc17220f41891cdf1ed9d9568f97.tar.gz
misc-fred-003e83457798cc17220f41891cdf1ed9d9568f97.tar.bz2
grandlyon: add explicite update_storage() calls to copy-wcs (#64625)
-rwxr-xr-xgrandlyon/scripts/copy-wcs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/grandlyon/scripts/copy-wcs.py b/grandlyon/scripts/copy-wcs.py
index e80b5b1..04c0794 100755
--- a/grandlyon/scripts/copy-wcs.py
+++ b/grandlyon/scripts/copy-wcs.py
@@ -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()