Skip to content

Commit

Permalink
fix: Fix bug with upload after matching again.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpriskorn committed Aug 7, 2024
1 parent c4a437d commit f1f2d99
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/models/enrich_hiking_trails.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,9 @@ def __lookup_in_waymarked_trails__(trail_item: TrailItem) -> None:
f"and see if any fit with {trail_item.item.get_entity_url()}"
)
trail_item.try_matching_again()
trail_item.enrich_wikidata()
else:
trail_item.osm_id_source = OsmIdSource.QUESTIONNAIRE
trail_item.enrich_wikidata()
# We don't return anything here because we are done
trail_item.osm_id_source = OsmIdSource.QUESTIONNAIRE
trail_item.enrich_wikidata()
# We don't return anything here because we are done with this item

def __login_to_wikidata__(self):
logger.debug(f"Trying to log in to the Wikibase as {config.user_name}")
Expand Down

0 comments on commit f1f2d99

Please sign in to comment.