Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -167,7 +167,10 @@ def sibyl_system_ban(
|
|
167 |
_, _, is_banned, _, sibyl_user_id = db.get_sibyl_system_banned(item.user_id)
|
168 |
|
169 |
if sibyl_user_id is not None and is_banned:
|
170 |
-
return
|
|
|
|
|
|
|
171 |
|
172 |
db.new_sibyl_system_banned(item.user_id, sibyl_ban, item.reason, date_joined)
|
173 |
return SuccessResponse(
|
|
|
167 |
_, _, is_banned, _, sibyl_user_id = db.get_sibyl_system_banned(item.user_id)
|
168 |
|
169 |
if sibyl_user_id is not None and is_banned:
|
170 |
+
return SuccessResponse(
|
171 |
+
status="False",
|
172 |
+
randydev={"message": "User is already banned"}
|
173 |
+
)
|
174 |
|
175 |
db.new_sibyl_system_banned(item.user_id, sibyl_ban, item.reason, date_joined)
|
176 |
return SuccessResponse(
|