Skip to content

Commit

Permalink
Rename to convert_float_to_datetime
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Herter <[email protected]>
  • Loading branch information
MHHukiewitz and hoh authored Nov 24, 2023
1 parent 2a0f34d commit be4371c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aleph_message/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def check_confirmed(cls, v, values):
return v

@validator("time")
def check_time(cls, v, values):
def convert_float_to_datetime(cls, v, values):
if isinstance(v, float):
v = datetime.datetime.fromtimestamp(v)
assert isinstance(v, datetime.datetime)
Expand Down

0 comments on commit be4371c

Please sign in to comment.