Skip to content

Commit

Permalink
mbari-org/mondrian#1 - Fix for endpoint returning 1 image per observa…
Browse files Browse the repository at this point in the history
…tion, i.e. returning duplicate entries
  • Loading branch information
hohonuuli committed May 18, 2023
1 parent 49891dd commit b5750bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.mbari.vars.annotation.model.Annotation

object ImageReferenceSQL {
val SELECT: String =
""" SELECT
""" SELECT DISTINCT
| ir.uuid AS image_reference_uuid,
| ir.description,
| ir.format,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object ImagedMomentSQL {
val SELECT_UUID: String = "SELECT DISTINCT im.uuid "

val SELECT_IMAGES: String =
"""SELECT
"""SELECT DISTINCT
| im.uuid AS imaged_moment_uuid,
| im.video_reference_uuid,
| im.elapsed_time_millis,
Expand Down

0 comments on commit b5750bb

Please sign in to comment.