CentreForDigitalHumanities / CentreForDigitalHumanities/Textcavator

Cannot index parliament-netherlands

Open
#2,028 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
12
Forks
3
Avg merge
3d 3m
Merged PRs (30d)
9

Description

### 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?

- [ ] https://textcavator.hum.uu.nl
- [ ] https://peopleandparliament.hum.uu.nl
- [ ] https://peace.sites.uu.nl
- [ ] a server hosted elsewhere (i.e. not by the research software lab)
- [x] a local server

### Version

5.28

### Steps to reproduce

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.