From 8a160684b7c7fa37b5183b2183dc1bd8b4f9323d Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Tue, 4 Sep 2018 10:59:20 +0530 Subject: [PATCH] [fix] filter() result in list --- .../doctype/marketplace_settings/marketplace_settings.py | 4 ++-- erpnext/public/js/hub/pages/Item.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/hub_node/doctype/marketplace_settings/marketplace_settings.py b/erpnext/hub_node/doctype/marketplace_settings/marketplace_settings.py index 5ea3011a862..9bfa39f73ff 100644 --- a/erpnext/hub_node/doctype/marketplace_settings/marketplace_settings.py +++ b/erpnext/hub_node/doctype/marketplace_settings/marketplace_settings.py @@ -68,10 +68,10 @@ class MarketplaceSettings(Document): def get_hub_user(self, user): '''Return the Hub User doc from the `users` table if password is set''' - filtered_users = filter( + filtered_users = list(filter( lambda x: x.user == user and x.password, self.users - ) + )) if filtered_users: return filtered_users[0] diff --git a/erpnext/public/js/hub/pages/Item.vue b/erpnext/public/js/hub/pages/Item.vue index 446327a98a8..651533eae36 100644 --- a/erpnext/public/js/hub/pages/Item.vue +++ b/erpnext/public/js/hub/pages/Item.vue @@ -28,7 +28,7 @@ - +