From 05e87dadcdb8a534253230386655c9152a540bd5 Mon Sep 17 00:00:00 2001 From: Matteo Campinoti Date: Mon, 26 Aug 2024 14:26:25 +0200 Subject: [PATCH] database.upgrade:upgrade_3_0_6to3_0_7 - fix incorrect field name --- acacore/database/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acacore/database/upgrade.py b/acacore/database/upgrade.py index f7268bd1..66fdaeb7 100644 --- a/acacore/database/upgrade.py +++ b/acacore/database/upgrade.py @@ -160,7 +160,7 @@ def upgrade_3_0_2to3_0_6(conn: Connection) -> Version: def upgrade_3_0_6to3_0_7(conn: Connection) -> Version: def convert_action_data(data: dict) -> dict | None: - if (reidentify := data.get("reidentify")) and reidentify.get("onfail"): + if (reidentify := data.get("reidentify")) and reidentify.get("on_fail"): data["reidentify"]["on_fail"] = "action" return data else: