Skip to content

Commit

Permalink
fix: wrong message timestamp (#2998)
Browse files Browse the repository at this point in the history
* fix: messagem timestamp

* [autofix.ci] apply automated fixes

* feat: fix typing error in message.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
  • Loading branch information
3 people authored Jul 26, 2024
1 parent 3cd0161 commit 8fffe73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/schema/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Message(Data):
files: Optional[list[str | Image]] = Field(default=[])
session_id: Optional[str] = Field(default="")
timestamp: Annotated[str, BeforeValidator(_timestamp_to_str)] = Field(
default=datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
default_factory=lambda: datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
)
flow_id: Optional[str | UUID] = None

Expand Down

0 comments on commit 8fffe73

Please sign in to comment.