Skip to content

Conversation

@akhilnarang
Copy link
Member

@akhilnarang akhilnarang commented Sep 30, 2025

Basically involves setting the correct types here.

Some date fields had datetime values set, which MariaDB "accepts",
but won't work with the way we have setup some types for SQLite.

Basically involves setting the correct types here.

Some date fields had datetime values set, which MariaDB "accepts",
but won't work with the way we have setup some types for SQLite.

Signed-off-by: Akhil Narang <[email protected]>
Comment on lines +358 to +362
timedelta(
hours=current_workday_doc.start_time.hour,
minutes=current_workday_doc.start_time.minute,
seconds=current_workday_doc.start_time.second,
).total_seconds(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the difference here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

start_time is a datetime.time field, it won't have total_seconds(), only datetime.timedelta has that.

@RitvikSardana
Copy link
Member

Tests are failing

@akhilnarang
Copy link
Member Author

Will check @RitvikSardana, something changed after I rebased, messed up the conflicts I guess, I had this commit originally made on a July clone of helpdesk 🙈.

@RitvikSardana
Copy link
Member

RitvikSardana commented Sep 30, 2025

A lot of changes are made in SLA since July, and relevant test cases are also added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants