             "order by j.group_name asc, j.jar_name asc"]
         (remove nil?)
         (apply str))
-      (remove nil? [group-id group-id group-id group-id artifact-id])]
+      (->> [group-id artifact-id] cycle (take 8) (remove nil?))]
      :results)))
 
 (defn get-artifact [group-id artifact-id]

            "(select jar_name, group_name, max(created) as created "
            "from jars "
            "where group_name = ? "
            "group by group_name, jar_name) l "
            "on j.jar_name = l.jar_name "
            "and j.group_name = l.group_name "

            "from jars "
            "where version not like '%-SNAPSHOT' "
            "and group_name = ? "
            (when artifact-id "and jar_name = ? ")
            "group by group_name, jar_name) r "
            "on j.jar_name = r.jar_name "
            "and j.group_name = r.group_name "
