Skip to content

Commit f80a3a6

Browse files
committed
fix: Fix indentation and complete error response updates in bot.py
1 parent a6fc378 commit f80a3a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

api/bot.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ def check_domain():
328328
logs = ChatLog.get_logs_by_bot_id(bot_id=bot_id)
329329
user = User.get_by_userID(id=user_id)
330330
sessionLimits = BillingPlan.query.filter_by(code=user.billing_plan).first().max_sessions_per_month
331-
# print(sessionLimits)
332-
# print(bot_id)
333-
if sessionLimits <= len(logs) and website != None:
331+
if sessionLimits <= len(logs) and website != None:
334332
if chat_log is None:
335333
return error_response('Maximum session limit exceeded', 403, 'LIMIT_EXCEEDED')
336334

0 commit comments

Comments
 (0)