Spaces:
Running
Running
Update main.py (#2)
Browse files- Update main.py (6da61b4e12995f016614e142028583f47ae0661e)
Co-authored-by: True Saiyan <[email protected]>
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
|
|
|
|
|
|
|
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(
|