Merge pull request #3 from Brandon-Rozek/inat_changes

Changes to inaturalist sync script and theme update
This commit is contained in:
Brandon Rozek 2022-10-12 03:39:35 +00:00 committed by GitHub
commit f9f4b993b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -122,6 +122,12 @@ def reformat_obs(obsid, obs_json):
# Turn Created At -> Date
obs_data['metadata']['date'] = obs_json['time_observed_at']
# Grab some taxonomy information about the organism
obs_data['metadata']['taxon'] = dict(
name=obs_json['taxon']['name'],
common_name=obs_json['taxon']['preferred_common_name']
)
# Grab only a few fields
desired_fields = [
'quality_grade', 'identifications_most_agree',
@ -130,6 +136,7 @@ def reformat_obs(obsid, obs_json):
'community_taxon_id', 'geojson',
'owners_identification_from_vision',
'identifications_count', 'obscured',
'num_identification_agreements',
'num_identification_disagreements',
'place_guess', "photos"
]

@ -1 +1 @@
Subproject commit 31cbccf8450f3faf84b7f090a6ca82f31f1e784f
Subproject commit 8982737cbccdac6aaa2dd5dfbd6835043814fb25