From 3a162d92d34c0396ddbca64444b8c2044cc88df9 Mon Sep 17 00:00:00 2001 From: unwox Date: Wed, 5 Mar 2025 20:38:40 +0600 Subject: add yoceramics parser --- bin/fetch.fnl | 7 ++++--- bin/serve.fnl | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'bin') 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"} -- cgit v1.2.3