Skip to content

Date Range parsing - always with two dates #6

@salvalacruz

Description

@salvalacruz

When getting entities from templates with Date Range properties, I suggest to ensure there are always two dates (from and to).

Right now, the parse_daterange function from Entities.py, leaves the second date empty if there is no value for "to". I propose to fill this value with the from value.

In example, if the received date range is from:05/12:2025 ; to:None, then the parsed value must be "05/12:2025:05/12:2025".

This result will be conceptually coherent, and will ensure to upload date ranges with no problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions