From 3f258eb7bb257c709ddfdc262dfd1b787c39b005 Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 18 Feb 2025 12:31:18 +0600 Subject: add teaworkshop parser --- bin/fetch.fnl | 4 +++- bin/serve.fnl | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/fetch.fnl b/bin/fetch.fnl index b632249..434e33a 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 teaworkshop (require :parser.teaworkshop)) (when _G.unpack (tset table :unpack _G.unpack)) @@ -167,7 +168,8 @@ (must (luna.db.commit tx))) (each [_ parser (pairs [daochai gorkovchay moychay ozchai suhexuan ipuer - artoftea clubcha chaekshop kolokolnikovchai tea108])] + 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 55f1ff0..4f77416 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -491,9 +491,9 @@ [:option {:value val :selected (if (= form.site val) "selected" nil)} (. (require (.. "parser." val)) :title)]) - [:ozchai :suhexuan :kolokolnikovchai :tea108 :ipuer :clubcha - :daochai :ozchai :chaekshop :artoftea :moychay - :gorkovchay]))]] + [:ozchai :suhexuan :ozchai :kolokolnikovchai :tea108 :ipuer + :clubcha :daochai :chaekshop :teaworkshop :artoftea + :moychay :gorkovchay]))]] [:div {} [:select {:name "sort"} [:option {:value ""} "~ Порядок ~"] -- cgit v1.2.3