   (if (integer? i)
     i
     (try (Integer/parseInt i)
-         (catch Exception e 
+         (catch Exception e
            (do
              (log/debug "Could not parse:" i)
              nil)))))

      (get :minion_id)
      (#(query "SELECT * FROM minion_skills WHERE minion_id = ?;" %))
      ; The above returns a collection, with one item
      first)
  )

(defn get-single-minion-from-sg-and-skill

                                                   WHERE skills_id = ?);"
                                                   sg_id
                                                   skill_id)))]
    (-> (query "SELECT * FROM minion_skills WHERE minion_id = ?;"
                  mId)
        first
        (update-in [:minion_cost] (fn [^Integer cost] (max 1 (+ (rand-int 5) -2 cost))))
        )
    nil))
