Skip to content

Commit

Permalink
fix: typo in labelhandler
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Feb 21, 2024
1 parent 1e0d066 commit e977af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viecpro_typesense/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def genderhandler(x):
def labelhandler(x):
label_types = ["Bezeichnung, alternativ", "Nachname verheiratet", "Nachname verheiratet (1. Ehe)", "Nachname verheiratet (2. Ehe)", "Nachname verheiratet (3. Ehe)", "Schreibvariante Nachname", "Schreibvariante Nachname verheiratet", "Schreibvariante Nachname verheiratet (1. Ehe)", "Schreibvariante Nachname verheiratet (2. Ehe)", "Schreibvariante Vorname"]
labels = x.label_set.all()
return [label.label for label in labels if label.label_type in label_types]
return [label.label for label in labels if label.label_type.name in label_types]


def create_entity_collections():
Expand Down

0 comments on commit e977af1

Please sign in to comment.