Skip to content

Cannot index parliament-netherlands #2028

@lukavdplas

Description

@lukavdplas

What went wrong?

Indexing the People & Parliament Netherlands corpus locally failed.

Error:

  File ".../Textcavator/backend/corpora/utils/filter_sources.py", line 10, in in_date_range
    return start_date <= corpus.max_date and end_date >= corpus.min_date
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: can't compare datetime.datetime to datetime.date

What did you expect to happen?

Screenshot

No response

Where did you find the bug?

Version

5.28

Steps to reproduce

  • Add Dutch parliament corpus
  • Run the index command to create an index for the corpus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething isn't working right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions