Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix schedule start time and duration types #99

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Process-ing
Copy link
Contributor

In Django, NUMERIC fields are parsed into strings instead of floats, which causes problems in frontend since it expects the fields start_time and duration of the slots to be of number type (either integer or float), like in conflict detection. This PR solves this problem by enforcing the type conversion to float when satissfying the request to the class/ endpoint.

@Process-ing Process-ing requested review from tomaspalma and a team August 20, 2024 16:51
@Process-ing Process-ing changed the title Fix schedule start time and duration times Fix schedule start time and duration types Aug 20, 2024
Copy link
Member

@tomaspalma tomaspalma left a comment

Choose a reason for hiding this comment

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

🚀

@Process-ing Process-ing merged commit 9f2a23b into develop Aug 20, 2024
@Process-ing Process-ing deleted the fix/schedule-time-type branch August 20, 2024 20:28
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