Browse Source

Master rate limit to 20 API calls

master
venkataakhil 2 years ago
parent
commit
ba0d1dc480
  1. 6
      smart_service/apis/master_api.py

6
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 != '':

Loading…
Cancel
Save