diff options
| author | unwox <me@unwox.com> | 2024-12-19 16:03:45 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-12-19 16:13:42 +0600 |
| commit | 441d7fd5a5a0ccf8d53238d717ec5119024cbbfa (patch) | |
| tree | 0ab998dfaaddd0d6bcde9aa6d398364fc996531f /parser/chaekshop.fnl | |
| parent | d3a445ad7270e788812dd16e19a2820fc70a91b6 (diff) | |
parse teaware volume and let users filter by it
Diffstat (limited to 'parser/chaekshop.fnl')
| -rw-r--r-- | parser/chaekshop.fnl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/chaekshop.fnl b/parser/chaekshop.fnl index 68046c1..21ed49b 100644 --- a/parser/chaekshop.fnl +++ b/parser/chaekshop.fnl @@ -38,7 +38,6 @@ (parser.guess-weight product.title))) (local price (number.string->number (string.gsub product.price "," "."))) {:site "chaekshop" - :id (.. "https://chaekshop.ru" product.url) :title product.title :url (.. "https://chaekshop.ru" product.url) :description "" @@ -46,6 +45,7 @@ :year (parser.guess-year product.title) :price price :weight weight + :volume (parser.guess-volume product.title) :price-per (if (and price weight (< 0 weight)) (/ (math.ceil (* (/ price weight) 10)) 10) nil)}) |
