summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-03-05 20:38:40 +0600
committerunwox <me@unwox.com>2025-03-05 20:38:40 +0600
commit3a162d92d34c0396ddbca64444b8c2044cc88df9 (patch)
tree14e57944d5f57d68f7a4b4989893cce81ceeab0b /bin
parent685f9d7ec664a3e7638f878707496db58ee1665b (diff)
add yoceramics parser
Diffstat (limited to 'bin')
-rw-r--r--bin/fetch.fnl7
-rw-r--r--bin/serve.fnl4
2 files changed, 6 insertions, 5 deletions
diff --git a/bin/fetch.fnl b/bin/fetch.fnl
index 434e33a..d3bbef9 100644
--- a/bin/fetch.fnl
+++ b/bin/fetch.fnl
@@ -19,6 +19,7 @@
(local ozchai (require :parser.ozchai))
(local suhexuan (require :parser.suhexuan))
(local tea108 (require :parser.tea108))
+(local yoceramics (require :parser.yoceramics))
(local teaworkshop (require :parser.teaworkshop))
(when _G.unpack
@@ -167,9 +168,9 @@
FROM products;" []))
(must (luna.db.commit tx)))
- (each [_ parser (pairs [daochai gorkovchay moychay ozchai suhexuan ipuer
- artoftea clubcha chaekshop kolokolnikovchai tea108
- teaworkshop])]
+ (each [_ parser (pairs [yoceramics daochai gorkovchay moychay ozchai suhexuan
+ ipuer artoftea clubcha chaekshop kolokolnikovchai
+ tea108 teaworkshop])]
(local products (parser.products))
(when (< 0 (# products))
;; replace with with-tx
diff --git a/bin/serve.fnl b/bin/serve.fnl
index 8b43d81..8793537 100644
--- a/bin/serve.fnl
+++ b/bin/serve.fnl
@@ -464,8 +464,8 @@
[:option {:value val
:selected (if (= form.site val) "selected" nil)}
(. (require (.. "parser." val)) :title)])
- [:ozchai :suhexuan :ozchai :kolokolnikovchai :tea108 :ipuer
- :clubcha :daochai :chaekshop :teaworkshop :artoftea
+ [:ozchai :suhexuan :ozchai :kolokolnikovchai :yoceramics :tea108
+ :ipuer :clubcha :daochai :chaekshop :teaworkshop :artoftea
:moychay :gorkovchay]))]]
[:div {}
[:select {:name "sort"}