From 81346989e6885c1800d75c50df2b3471678ddc48 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Mon, 30 Oct 2023 03:47:10 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- bdgd_tools/model/Line.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bdgd_tools/model/Line.py b/bdgd_tools/model/Line.py index 5f766ca..57d2db1 100644 --- a/bdgd_tools/model/Line.py +++ b/bdgd_tools/model/Line.py @@ -285,15 +285,15 @@ def _create_line_from_row(line_config, row): line_ = Line() for key, value in line_config.items(): - if key == "static": - line_._process_static(line_, value) + if key == "calculated": + line_._process_calculated(line_, value, row) + elif key == "direct_mapping": line_._process_direct_mapping(line_, value,row) elif key == "indirect_mapping": line_._process_indirect_mapping(line_, value,row) - elif key == "calculated": - line_._process_calculated(line_, value, row) - + elif key == "static": + line_._process_static(line_, value) return line_ @staticmethod