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 duration parsing in lists #255

Merged
merged 2 commits into from
Jul 11, 2021

Commits on Mar 24, 2021

  1. Fix parsing of durations/periods.

    The magic here is the `Or()` operator that tries to match the longest
    pattern.
    olii committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    14cd9a6 View commit details
    Browse the repository at this point in the history
  2. Fix parsing of lists with relativedelta objects.

    The relativedelta objects were rejected because we cannot compare them to
    strings. Both `==` and `!=` results to `False`.
    
    Instead we have to first test the type and then do the comparison.
    olii committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    16a4386 View commit details
    Browse the repository at this point in the history