Skip to content

Commit

Permalink
refactor: update timestamp format in DAQJobHandleStats datetime_to_st…
Browse files Browse the repository at this point in the history
…r method
  • Loading branch information
furkan-bilgin committed Oct 13, 2024
1 parent 9abf638 commit 6d9e6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daq/jobs/handle_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def handle_message(self, message: DAQJobMessageStats) -> bool:
def datetime_to_str(dt: Optional[datetime]):
if dt is None:
return "N/A"
return dt.strftime("%Y-%m-%d %H:%M:%S")
return int(dt.timestamp() * 1000)

data_to_send = []
for daq_job_type, msg in message.stats.items():
Expand Down

0 comments on commit 6d9e6cc

Please sign in to comment.