Ufoptg commited on
Commit
db93e80
1 Parent(s): a8c8e12

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
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 {"status": "false", "message": "User is already banned"}
 
 
 
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(