Skip to content

Commit

Permalink
Merge pull request #358 from WildMeOrg/remove-IA-species-change
Browse files Browse the repository at this point in the history
switch species rewrite to IA class in send Annotations
  • Loading branch information
holmbergius committed Jan 24, 2024
2 parents 0b3d2d1 + 8f5cf0d commit 9c8536b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/ecocean/ia/plugin/WildbookIAM.java
Expand Up @@ -268,7 +268,12 @@ public JSONObject sendAnnotations(ArrayList<Annotation> anns, boolean checkFirst
int[] bbox = ann.getBbox();
map.get("annot_bbox_list").add(bbox);
//TODO both of these shepherd/db calls can probably be combined !!! FIXME
map.get("annot_species_list").add(getIASpecies(ann, myShepherd));

//yuck - IA class is not species
//map.get("annot_species_list").add(getIASpecies(ann, myShepherd));
//better
map.get("annot_species_list").add(ann.getIAClass());

map.get("annot_theta_list").add(ann.getTheta());
String name = ann.findIndividualId(myShepherd);
map.get("annot_name_list").add((name == null) ? "____" : name);
Expand Down

0 comments on commit 9c8536b

Please sign in to comment.