Skip to content

Commit

Permalink
fix(export): fix two data-errors in source export
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Apr 15, 2024
1 parent cc84a3a commit 0c7c814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis_ontology/management/commands/sources_export_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def fetch_sources():
data = page.json()
nextpage = data['next']
for result in data["results"]:
if result["pubinfo"] == "\u00d6BL 1815-1950, Bd. 1 (Lfg. 2), S. 112f.":
result["pubinfo"] = "\u00d6BL 1815-1950, Bd. 1 (Lfg. 2, 1954), S. 112f."
if result["pubinfo"] == "\u00d6BL 1815-1950, Bd. 6 (Lfg. 27), S. 126":
result["pubinfo"] = "\u00d6BL 1815-1950, Bd. 6 (Lfg. 27, 1974), S. 126"
print(result["url"])
sources[result["id"]] = {
"orig_filename": result["orig_filename"],
Expand Down

0 comments on commit 0c7c814

Please sign in to comment.