summaryrefslogtreecommitdiff
path: root/parser/ozchai.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-03-05 23:27:59 +0600
committerunwox <me@unwox.com>2025-03-05 23:27:59 +0600
commite7200ff8c6d745ed1e17e865932ea973dd71db41 (patch)
treead5a07c52b3ff5c37c61c3e980908d0bbaf9f48d /parser/ozchai.fnl
parent3a162d92d34c0396ddbca64444b8c2044cc88df9 (diff)
small improvements
Diffstat (limited to 'parser/ozchai.fnl')
-rw-r--r--parser/ozchai.fnl3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser/ozchai.fnl b/parser/ozchai.fnl
index 1d4c4f3..e59ddf0 100644
--- a/parser/ozchai.fnl
+++ b/parser/ozchai.fnl
@@ -22,7 +22,8 @@
(fn normalize [product]
(local gallery (json.decode product.gallery))
- (local weight (number.string->number (. product.editions 1 :Вес)))
+ (local weight (or (parser.guess-weight (. product.editions 1 :Вес))
+ (number.string->number (. product.editions 1 :Вес))))
(local price (number.string->number (. product.editions 1 :price)))
(var volume nil)
(each [_ c (ipairs product.characteristics)]