randydev Ufoptg commited on
Commit
5a04c21
1 Parent(s): 11ad08f

Update main.py (#2)

Browse files

- Update main.py (6da61b4e12995f016614e142028583f47ae0661e)


Co-authored-by: True Saiyan <[email protected]>

Files changed (1) hide show
  1. main.py +5 -2
main.py CHANGED
@@ -333,8 +333,11 @@ def sibyl_system_ban(
333
  sibyl_ban = random.choice(RAMDOM_STATUS)
334
  _, _, is_banned, _, sibyl_user_id = get_sibyl_system_banned(item.user_id)
335
 
336
- if sibyl_user_id and is_banned:
337
- return {"status": "false", "message": "User is already banned"}
 
 
 
338
 
339
  new_sibyl_system_banned(item.user_id, sibyl_ban, item.reason, date_joined)
340
  return SuccessResponse(
 
333
  sibyl_ban = random.choice(RAMDOM_STATUS)
334
  _, _, is_banned, _, sibyl_user_id = get_sibyl_system_banned(item.user_id)
335
 
336
+ if sibyl_user_id is not None and is_banned:
337
+ return SuccessResponse(
338
+ status="False",
339
+ randydev={"message": "User is already banned"}
340
+ )
341
 
342
  new_sibyl_system_banned(item.user_id, sibyl_ban, item.reason, date_joined)
343
  return SuccessResponse(