From 778ab54f2e97455e07b2247ec9ea79e3a39500e7 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 3 Feb 2025 15:43:58 +0600 Subject: add tea108 parser --- bin/fetch.fnl | 13 +++++++------ bin/serve.fnl | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/fetch.fnl b/bin/fetch.fnl index 2edcdac..3b525d2 100644 --- a/bin/fetch.fnl +++ b/bin/fetch.fnl @@ -6,15 +6,16 @@ (local array (require :lib.array)) (local cache (require :lib.cache)) +(local artoftea (require :parser.artoftea)) +(local chaekshop (require :parser.chaekshop)) +(local clubcha (require :parser.clubcha)) (local gorkovchay (require :parser.gorkovchay)) +(local ipuer (require :parser.ipuer)) +(local kolokolnikovchai (require :parser.kolokolnikovchai)) (local moychay (require :parser.moychay)) (local ozchai (require :parser.ozchai)) (local suhexuan (require :parser.suhexuan)) -(local ipuer (require :parser.ipuer)) -(local artoftea (require :parser.artoftea)) -(local clubcha (require :parser.clubcha)) -(local chaekshop (require :parser.chaekshop)) -(local kolokolnikovchai (require :parser.kolokolnikovchai)) +(local tea108 (require :parser.tea108)) (local {: must} (require :lib.utils)) (when _G.unpack @@ -164,7 +165,7 @@ (must (luna.db.commit tx))) (each [_ parser (pairs [gorkovchay moychay ozchai suhexuan ipuer artoftea - clubcha chaekshop kolokolnikovchai])] + clubcha chaekshop kolokolnikovchai tea108])] (local products (parser.products)) (when (< 0 (# products)) ;; replace with with-tx diff --git a/bin/serve.fnl b/bin/serve.fnl index 2e74501..0dbee92 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -491,8 +491,8 @@ [:option {:value val :selected (if (= form.site val) "selected" nil)} (. (require (.. "parser." val)) :title)]) - [:ozchai :suhexuan :clubcha :ipuer :artoftea :chaekshop :moychay - :kolokolnikovchai :gorkovchay]))]] + [:ozchai :suhexuan :kolokolnikovchai :tea108 :ipuer :clubcha + :artoftea :chaekshop :moychay :gorkovchay]))]] [:div {} [:select {:name "sort"} [:option {:value ""} "~ Порядок ~"] -- cgit v1.2.3