summaryrefslogtreecommitdiff
path: root/parser/artoftea.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-12-19 16:03:45 +0600
committerunwox <me@unwox.com>2024-12-19 16:13:42 +0600
commit441d7fd5a5a0ccf8d53238d717ec5119024cbbfa (patch)
tree0ab998dfaaddd0d6bcde9aa6d398364fc996531f /parser/artoftea.fnl
parentd3a445ad7270e788812dd16e19a2820fc70a91b6 (diff)
parse teaware volume and let users filter by it
Diffstat (limited to 'parser/artoftea.fnl')
-rw-r--r--parser/artoftea.fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/artoftea.fnl b/parser/artoftea.fnl
index 265e19b..773f038 100644
--- a/parser/artoftea.fnl
+++ b/parser/artoftea.fnl
@@ -44,7 +44,6 @@
(local weight (number.string->number product.weight))
(local price (number.string->number product.price))
{:site "artoftea"
- :id product.id
:title product.title
:url product.url
:description product.description
@@ -52,6 +51,7 @@
:year year
: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)})