From 456eb5c67487da307f7369423ec4e316fa2c5d25 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Wed, 3 Sep 2025 09:53:07 -0300 Subject: [PATCH] SIENTIAPDE-1084 Refactor debug logging in gates.py to remove f-string usage for improved consistency and readability --- laborious/activities/gates.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/laborious/activities/gates.py b/laborious/activities/gates.py index 528c872..08f4f02 100644 --- a/laborious/activities/gates.py +++ b/laborious/activities/gates.py @@ -416,17 +416,17 @@ class Gates(BaseActivity): data['timestamp'] = input_data['timestamp'] else: self.debug( - f"Data has timestamp, sorting data by timestamp", metadata) + "Data has timestamp, sorting data by timestamp", metadata) # If policy_type is lts, we need to sort the data by timestamp descending and take the first policy_value rows if policy_type == 'lts': self.debug( - f"Sorting data by timestamp descending", metadata) + "Sorting data by timestamp descending", metadata) data = data.sort_values(by='timestamp', ascending=False) # If policy_type is erl, we need to sort the data by timestamp ascending and take the first policy_value rows elif policy_type == 'erl': self.debug( - f"Sorting data by timestamp ascending", metadata) + "Sorting data by timestamp ascending", metadata) data = data.sort_values(by='timestamp', ascending=True) else: self.error(