summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-09-30 10:06:45 +0600
committerunwox <me@unwox.com>2025-10-23 13:05:00 +0600
commit2c89f5f32ccd2ee8220e5b958d9324b318e53266 (patch)
tree1d6d6e71afebf6c977e69ac82fed136429825bb6 /bin
parent9470b10bdd9e1cc166a4b9ddfbdf09d1c4818ae8 (diff)
add thailandtea parser
Diffstat (limited to 'bin')
-rw-r--r--bin/fetch.fnl5
-rw-r--r--bin/serve.fnl4
2 files changed, 5 insertions, 4 deletions
diff --git a/bin/fetch.fnl b/bin/fetch.fnl
index a28af42..286c2ef 100644
--- a/bin/fetch.fnl
+++ b/bin/fetch.fnl
@@ -8,8 +8,8 @@
(local artoftea (require :parser.artoftea))
(local batatcha (require :parser.batatcha))
-(local chaibez (require :parser.chaibez))
(local chaekshop (require :parser.chaekshop))
+(local chaibez (require :parser.chaibez))
(local clubcha (require :parser.clubcha))
(local daochai (require :parser.daochai))
(local gorkovchay (require :parser.gorkovchay))
@@ -20,6 +20,7 @@
(local suhexuan (require :parser.suhexuan))
(local tea108 (require :parser.tea108))
(local teaworkshop (require :parser.teaworkshop))
+(local thailandtea (require :parser.thailandtea))
(local yoceramics (require :parser.yoceramics))
(when _G.unpack
@@ -196,7 +197,7 @@
(each [_ parser (pairs [batatcha yoceramics daochai gorkovchay ozchai suhexuan
ipuer artoftea clubcha chaekshop kolokolnikovchai
- tea108 teaworkshop chaibez moychay])]
+ tea108 teaworkshop chaibez thailandtea moychay])]
(let [(ok? products) (pcall parser.products)]
(if (and ok? (< 0 (# products)))
(do
diff --git a/bin/serve.fnl b/bin/serve.fnl
index 036e43d..c0128c2 100644
--- a/bin/serve.fnl
+++ b/bin/serve.fnl
@@ -451,8 +451,8 @@
:selected (if (= form.site val) "selected" nil)}
(. (require (.. "parser." val)) :title)])
[:suhexuan :ozchai :batatcha :kolokolnikovchai :yoceramics :tea108
- :ipuer :clubcha :daochai :chaekshop :teaworkshop :chaibez
- :artoftea :moychay :gorkovchay]))]]
+ :ipuer :clubcha :daochai :thailandtea :chaekshop :teaworkshop
+ :chaibez :artoftea :moychay :gorkovchay]))]]
[:div {}
[:select {:name "sort"}
[:option {:value ""} "~ Порядок ~"]