Skip to content

Commit 573a1dc

Browse files
committed
Fix: update xenocanto api v2
1 parent 8d6ab19 commit 573a1dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ia4birds-all/ai4birds-ingest-service/ai4birds_ingest_service/model/extractor/xenocanto_extractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _format_results(self, data):
112112
continue
113113

114114
# Asegúrate de que los campos críticos están presentes
115-
required_fields = ['id', 'loc', 'q', 'lat', 'lng', 'alt', 'file', 'file-name', 'time', 'date']
115+
required_fields = ['id', 'loc', 'q', 'lat', 'lon', 'alt', 'file', 'file-name', 'time', 'date']
116116
if not all(field in bird and bird[field] not in [None, ''] for field in required_fields):
117117
logger.warning(f"Skipping incomplete bird record: {bird}")
118118
continue
@@ -124,7 +124,7 @@ def _format_results(self, data):
124124
"location": bird.get('loc'),
125125
"quality": bird.get('q'),
126126
"lat": bird.get('lat'),
127-
"lng": bird.get('lng'),
127+
"lon": bird.get('lon'),
128128
"alt": bird.get('alt'),
129129
"file": bird.get('file'),
130130
"file-name": bird.get('file-name'),

0 commit comments

Comments
 (0)