Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Feb 22, 2024
1 parent 4170a6a commit 0fe75d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viecpro_typesense/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def collection_factory(name, fields, config):

def get_start_year_or_0(instance):
if instance.start_date is not None:
return instance.start_date.year()
return instance.start_date.year
return 0


def get_end_year_or_5000(instance):
if instance.end_date is not None:
return instance.end_date.year()
return instance.end_date.year
return 5000


Expand Down

0 comments on commit 0fe75d8

Please sign in to comment.