servii-backend/unit_test.py

16 lines
451 B
Python
Raw Normal View History

import file_manager
import firebase_manager
def ban_user(user_id: str):
try:
firebase_manager.auth.update_user(user_id, disabled=False)
2024-08-15 08:49:41 +00:00
print("Banned : " + user_id)
except Exception as e:
2024-08-15 08:49:41 +00:00
print("Error banning user " + user_id, "|", str(e), type(e).__name__)
2024-08-11 09:02:10 +00:00
if __name__ == '__main__':
#ban_user("MpkbDMOO8PQddQgB5VgBQdTMWF53")
file_manager.log_action("gqZN3eCHF3V2er3Py3rlgk8u2t83", "test", "DeleteServer")