Skip to content

Commit

Permalink
Merge pull request #7253 from butzopower/fix-www-netrunnerdb-import
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke authored Dec 26, 2023
2 parents bd8410a + f4832c7 commit b78f57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/web/nrdb.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
[monger.collection :as mc]
[monger.operators :refer :all]
[org.httpkit.client :as http]
[clj-uuid :as uuid]
[clojure.string :as str]))

(def nrdb-decklist-url "https://netrunnerdb.com/api/2.0/public/decklist/")
Expand All @@ -12,7 +11,8 @@
(defn- parse-input
"Want to handle an NRDB URL or just a deck id number"
[input]
(let [input (if (str/starts-with? input nrdb-readable-url)
(let [input (str/replace input "www.netrunnerdb.com" "netrunnerdb.com")
input (if (str/starts-with? input nrdb-readable-url)
(subs input (count nrdb-readable-url))
input)
[id] (str/split input #"/")]
Expand Down

0 comments on commit b78f57a

Please sign in to comment.