Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Jul 4, 2024
1 parent 0d13d38 commit cbe60e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/marvin/beta/assistants/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)


Expand Down

0 comments on commit cbe60e4

Please sign in to comment.