From ba0d1dc480099632faabfff4fbd1f461cc091a0f Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Thu, 9 Feb 2023 18:39:32 +0530 Subject: [PATCH] Master rate limit to 20 API calls --- smart_service/apis/master_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smart_service/apis/master_api.py b/smart_service/apis/master_api.py index 5eea4d9..9f1b5be 100644 --- a/smart_service/apis/master_api.py +++ b/smart_service/apis/master_api.py @@ -39,9 +39,9 @@ def custom_rate_limit(limit, seconds): @frappe.whitelist() def masters(args=None, LSD=None): - # rate = custom_rate_limit(limit=5, seconds=5) - # if rate != 1: - # return rate + rate = custom_rate_limit(limit=20, seconds=5) + if rate != 1: + return rate val = input_validation(args=args) if val != '':