Skip to content

Commit

Permalink
Convert to correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko259 committed Jan 26, 2025
1 parent 57eb9cb commit e518bc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helpers/staffing_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ async def _geteventdate(self, title, interval = 1):
print(f"Warning: No current staffing date found for '{title}'.")
current = None

new_date = datetime.strptime(str(new_date), "%Y-%m-%d") if new_date else None
formatted_start_time = datetime.strptime(str(formatted_start_time), "%H:%M") if formatted_start_time else None
end_time = datetime.strptime(str(end_time), "%H:%M") if end_time else None

return new_date, formatted_start_time, end_time, current

async def _updatemessage(self, id):
Expand Down

0 comments on commit e518bc4

Please sign in to comment.