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

Not validated when date in sample project fields contatins also the time #305

Open
luissian opened this issue Sep 25, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@luissian
Copy link
Member

Description of the bug

When validating the input date in sample project data in function "validate_project_data" it returns invalid because excel form provide also the time "00:00:00".
This must be removed before checking.
The following lines are the proposal for this change
if field_type == "Date" and sample[field_name] != "": # if field contains also time, then removed it sample[field_name] = re.sub(r"\s\d{2}:\d{2}:\d{2}", "", sample[field_name]) try:

Command used and terminal output

No response

Relevant files

No response

System information

No response

@luissian luissian added the bug Something isn't working label Sep 25, 2024
@luissian luissian self-assigned this Sep 25, 2024
@luissian luissian added this to the Ready for 3.2.0 milestone Sep 25, 2024
luissian added a commit to luissian/iskylims that referenced this issue Sep 27, 2024
@luissian
Copy link
Member Author

Implemented as it was in the proposal code in the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant