Skip to content

Commit c8d207a

Browse files
committed
Fix timestamp
1 parent 2f110d2 commit c8d207a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def submit_job_to_sqs(self, text: str) -> Dict[str, str]:
3030
:param text: text string to process
3131
"""
3232

33-
timestamp = datetime.utcnow().isoformat(' ', 'seconds')
33+
timestamp = datetime.utcnow().isoformat(timespec='seconds')
3434
response = self.sqs_client.send_message(QueueUrl=self.sqs_queue_url,
3535
MessageBody=json.dumps({'text': text,
3636
'timestamp': timestamp},

0 commit comments

Comments
 (0)