other food app thingies
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
[clj-time.coerce :as coerce]
|
[clj-time.coerce :as coerce]
|
||||||
[clj-time.core :as time]
|
[clj-time.core :as time]
|
||||||
[clj-time.format :as f]
|
[clj-time.format :as f]
|
||||||
|
[clojure.string :as str]
|
||||||
[clojure.data.json :as json]
|
[clojure.data.json :as json]
|
||||||
[clojure.tools.logging :as log]
|
[clojure.tools.logging :as log]
|
||||||
[datomic.api :as d]
|
[datomic.api :as d]
|
||||||
@@ -175,14 +176,14 @@
|
|||||||
(remove-nils
|
(remove-nils
|
||||||
#:charge
|
#:charge
|
||||||
{:type-name (:type t)
|
{:type-name (:type t)
|
||||||
:processor (condp = (:note t)
|
:processor (condp = (some-> (:note t) str/lower-case)
|
||||||
"DOORDASH" :ccp-processor/doordash
|
"doordash" :ccp-processor/doordash
|
||||||
"Dd" :ccp-processor/doordash
|
|
||||||
"dd" :ccp-processor/doordash
|
"dd" :ccp-processor/doordash
|
||||||
"UBEREATS" :ccp-processor/uber-eats
|
"ubereats" :ccp-processor/uber-eats
|
||||||
"Ue" :ccp-processor/uber-eats
|
|
||||||
"ue" :ccp-processor/uber-eats
|
"ue" :ccp-processor/uber-eats
|
||||||
"GRUBHUB" :ccp-processor/grubhub
|
"grubhub" :ccp-processor/grubhub
|
||||||
|
"grub" :ccp-processor/grubhub
|
||||||
|
"gh" :ccp-processor/grubhub
|
||||||
(condp = (:name (:source order))
|
(condp = (:name (:source order))
|
||||||
"GRUBHUB" :ccp-processor/grubhub
|
"GRUBHUB" :ccp-processor/grubhub
|
||||||
"UBEREATS" :ccp-processor/uber-eats
|
"UBEREATS" :ccp-processor/uber-eats
|
||||||
|
|||||||
Reference in New Issue
Block a user