From cbe60e4f63c876b2441e94f0bdc786292554097d Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Thu, 4 Jul 2024 13:08:12 -0500 Subject: [PATCH] fix bug --- src/marvin/beta/assistants/formatting.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/marvin/beta/assistants/formatting.py b/src/marvin/beta/assistants/formatting.py index 2c140c33a..341c9e7b6 100644 --- a/src/marvin/beta/assistants/formatting.py +++ b/src/marvin/beta/assistants/formatting.py @@ -50,10 +50,7 @@ def download_temp_file(file_id: str): def format_timestamp(timestamp: int) -> str: """Outputs timestamp as a string in 12 hour format. Hours are left-padded with space instead of zero.""" return ( - datetime.datetime.fromtimestamp(timestamp) - .strftime("%I:%M:%S %p") - .lstrip("0") - .rjust(11) + datetime.fromtimestamp(timestamp).strftime("%I:%M:%S %p").lstrip("0").rjust(11) )