summaryrefslogtreecommitdiff
path: root/parser/ozchai.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-12-11 20:41:29 +0600
committerunwox <me@unwox.com>2024-12-16 21:20:55 +0600
commit155c9c5bbb703490e5d61f7b4504987e35088a95 (patch)
tree643995b9b90c3759888cfd9b3100d871c0ccfb63 /parser/ozchai.fnl
parente35dbf50a93ba734def634317a09211654974d42 (diff)
integrate moychay.ru tea shop
Diffstat (limited to 'parser/ozchai.fnl')
-rw-r--r--parser/ozchai.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/ozchai.fnl b/parser/ozchai.fnl
index 9ccce5f..16a3265 100644
--- a/parser/ozchai.fnl
+++ b/parser/ozchai.fnl
@@ -17,7 +17,7 @@
"&size=36"))
(fn destruct-response [response]
- {:items response.products})
+ {:items (. (json.decode response) :products)})
(fn normalize [product]
(local gallery (json.decode product.gallery))
@@ -54,4 +54,4 @@
destruct-response
normalize))
-{: products :title "Чайная #OZCHAI" :url "https://ozchai.ru"}
+{:products products :title "Чайная #OZCHAI" :url "https://ozchai.ru"}