From 840c43cb09ff48efec5e40344217105fb66f1d05 Mon Sep 17 00:00:00 2001 From: Sietse Snel Date: Thu, 19 Oct 2023 11:07:22 +0200 Subject: [PATCH] ARB: typing fix in data manager get_original_data always needs to return ARB values in the internal string representation. They should only be transformed to/from arb_data in the public get/put methods. --- util/arb_data_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/arb_data_manager.py b/util/arb_data_manager.py index daf6d93eb..a059f4bd3 100644 --- a/util/arb_data_manager.py +++ b/util/arb_data_manager.py @@ -62,12 +62,12 @@ def _get_original_data(self, ctx, keyname): if len(arb_data) == 0: # If we don't have an ARB value, ARB should ignore this resource - return constants.arb_status.IGNORE + return constants.arb_status.IGNORE.value elif len(arb_data) == 1: return arb_data[0][0] else: log.write(ctx, "WARNING: multiple ARB AVUs present for resource '{}'. ARB will ignore it.".format(keyname)) - return constants.arb_status.IGNORE + return constants.arb_status.IGNORE.value def _put_original_data(self, ctx, keyname, data): """This function is called when data needs to be updated in the original