From 9ff2373ccb0e32aa5c729cbafca2406a944b02dd Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Wed, 1 Jul 2026 18:00:36 +0200 Subject: [PATCH] decp.info => colibre --- src/backup/cli.py | 4 ++-- src/pages/compte_abonnement_mes_infos.py | 2 +- src/subscriptions/routes.py | 2 +- tests/users.test.sqlite | Bin 81920 -> 106496 bytes 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backup/cli.py b/src/backup/cli.py index 4046dd2..0e82d6b 100644 --- a/src/backup/cli.py +++ b/src/backup/cli.py @@ -46,11 +46,11 @@ def main(argv=None, env=None, storage=None) -> int: return 0 if args.cmd == "restore": - print("⚠ Arrêtez d'abord le service : systemctl stop decpinfo") + print("⚠ Arrêtez d'abord le service : systemctl stop colibre") backup_copy = service.restore(config, storage, args.key, now) print(f"restauré depuis : {args.key}") print(f"copie de secours de l'ancienne base : {backup_copy}") - print("Redémarrez ensuite le service : systemctl start decpinfo") + print("Redémarrez ensuite le service : systemctl start colibre") return 0 diff --git a/src/pages/compte_abonnement_mes_infos.py b/src/pages/compte_abonnement_mes_infos.py index 330e1dc..c733fb4 100644 --- a/src/pages/compte_abonnement_mes_infos.py +++ b/src/pages/compte_abonnement_mes_infos.py @@ -113,7 +113,7 @@ def layout(**query): prefill: dict = {} try: - prefill = frisbii_client.get_customer(f"decpinfo-{current_user.id}") + prefill = frisbii_client.get_customer(f"colibre-{current_user.id}") except frisbii_client.FrisbiiError: prefill = {} stored_siret = auth_db.get_siret(current_user.id) or "" diff --git a/src/subscriptions/routes.py b/src/subscriptions/routes.py index 5d32046..c884a2e 100644 --- a/src/subscriptions/routes.py +++ b/src/subscriptions/routes.py @@ -11,7 +11,7 @@ subscriptions_bp = Blueprint("subscriptions", __name__) def _customer_handle(user_id: int) -> str: - return f"decpinfo-{user_id}" + return f"colibre-{user_id}" @subscriptions_bp.route("/subscriptions/subscribe", methods=["POST"]) diff --git a/tests/users.test.sqlite b/tests/users.test.sqlite index 07db7a411535c98c2261cd2b38f7e762d41cb97a..e864fa7dd9491b0efd91f24a2a0ef54789706000 100644 GIT binary patch delta 788 zcmZWnO=uHA6yDjNWPh@m4K?mIiOo=zZD?Z;da(EdQF76uQUd-^SU1^)F2*!wHzIi?gPwrX6_m=6&>pB?eRqEg)IxZj?#wV=?Zj_A4WXtlLO#nW#DR>*n!U;JBUr`3u z*aS=p5wY(9m?dye)?tdx{M8oKk68sC%CX6M!@Fk91%2N^O>>%_7HFc zJswcGkW+v>hhev(gTW>G_P<1asD%svzmU6mV>qhk^JpO-*yXCb@$ItPu>8Odw%Nu& zm9~1rN0f!{tVoNYzo*_{Bn-xH;1@A*>)>Pw62m2z-2LwEe|OyvU$^Uhh=&NnFcH^h7JcOR0)*MV`&n^O z7@pC80-0eCfbTc2%!wO3P51s!lfu!T>1V-avSP zCs=S3QYjr*ctTyn9UI~-{RgeOsN!${QQR^ifSd^l%$h*(z>PeUJ{(;`3R44!VA2AP z)HGQ%WJwSW?3u8R*?V{H-2@IlO$a7vOH(?+nL&?A#WGLNn})0lRnc8jlQCdHBL2r* z9Z8u8wN*o@PftSLg4OBP?*<%>#x{&Sx!yACj}