Skip to content

Commit

Permalink
fix: redundantly store publication short_title in db
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstadler committed Jan 21, 2025
1 parent 4e648cf commit 318580c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/3_to_typesense.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def del_empty_strings(o, field_names):

for i, pub in enumerate(publications):
pub["id"] = str(i + 1)
if not w["short_title"]:
w["short_title"] = w["title"]
if "short_title" not in pub:
pub["short_title"] = pub["title"]

pub["contains"] = [
translations[t_id - 1]
Expand Down

0 comments on commit 318580c

Please sign in to comment.