summaryrefslogtreecommitdiff
path: root/parser/clubcha.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/clubcha.fnl
parentd3a445ad7270e788812dd16e19a2820fc70a91b6 (diff)
parse teaware volume and let users filter by it
Diffstat (limited to 'parser/clubcha.fnl')
-rw-r--r--parser/clubcha.fnl1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser/clubcha.fnl b/parser/clubcha.fnl
index 23f9484..affee2b 100644
--- a/parser/clubcha.fnl
+++ b/parser/clubcha.fnl
@@ -72,6 +72,7 @@
:year 0
: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)})