decrice timeout

This commit is contained in:
Sayyid Hamid Mahdavi 2025-07-12 16:49:01 +03:30
parent f642bac31a
commit e2f61be92c
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ REST_FRAMEWORK = {
# ], # ],
'DEFAULT_THROTTLE_RATES': { 'DEFAULT_THROTTLE_RATES': {
'otp_min': '1/min', 'otp_min': '1/min',
'otp_day': '5/day', 'otp_day': '20/day',
} }
} }

View file

@ -41,7 +41,7 @@ def send_sms(phone_number, message):
'Accept': 'application/json', 'Accept': 'application/json',
} }
response_object = requests.post(url, headers=headers, json=body, timeout=30) response_object = requests.post(url, headers=headers, json=body, timeout=10)
print(response_object.text) print(response_object.text)
except Exception as e: except Exception as e:
print(e) print(e)