Skip to content

Commit

Permalink
🐛 [BUG] Fix reference points parsing in GeotrekCourseParser (refs #3569)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chatewgne committed Feb 27, 2024
1 parent f5485d1 commit 4a814ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geotrek/outdoor/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ def filter_type(self, src, val):
return CourseType.objects.get(pk=type_id)
return None

def filter_points_reference(self, src, val):
if val:
return str(val)

Check warning on line 223 in geotrek/outdoor/parsers.py

View check run for this annotation

Codecov / codecov/patch

geotrek/outdoor/parsers.py#L223

Added line #L223 was not covered by tests
return None

def parse(self, filename=None, limit=None):
self.init_outdoor_category('type', CourseType, join_field='practice')
super().parse(filename, limit)
Expand Down

0 comments on commit 4a814ea

Please sign in to comment.