Compare commits

...

2 Commits

Author SHA1 Message Date
4a5d4adee1 Fix: bug association sem. à nouvelle version 2021-04-23 00:06:07 +02:00
314ed4ab7d Fix scripts 2021-04-22 22:14:25 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
# E. Viennet, Juin 2008
#
set -euo pipefail
set -eo pipefail
source config.sh
source utils.sh

View File

@ -60,7 +60,7 @@ then
# suppression de la base postgres
db_name=$(sed '/^dbname=*/!d; s///;q' < "$cfg_pathname")
if su -c "psql -lt" "$POSTGRES_SUPERUSER" | cut -d \| -f 1 | grep -wq SCORT
if su -c "psql -lt" "$POSTGRES_SUPERUSER" | cut -d \| -f 1 | grep -wq "$db_name"
then
echo "Suppression de la base postgres $db_name ..."
su -c "dropdb $db_name" "$POSTGRES_SUPERUSER" || terminate "ne peux supprimer base de donnees $db_name"

View File

@ -1199,7 +1199,7 @@ def _reassociate_moduleimpls(
)
for mod in modimpls:
mod["module_id"] = modules_old2new[mod["module_id"]]
context.do_moduleimpl_edit(mod, formsemestre_id=formsemestre_id, cnx=cnx)
sco_moduleimpl.do_moduleimpl_edit(context, mod, formsemestre_id=formsemestre_id)
# update decisions:
events = scolars.scolar_events_list(cnx, args={"formsemestre_id": formsemestre_id})
for e in events: