servii-backend/unit_test.py
2024-09-06 12:42:25 +02:00

24 lines
611 B
Python

import time
from os import remove
import file_manager
import firebase_manager
def ban_user(user_id: str):
try:
firebase_manager.auth.update_user(user_id, disabled=False)
print("Banned : " + user_id)
except Exception as e:
print("Error banning user " + user_id, "|", str(e), type(e).__name__)
if __name__ == '__main__':
#ban_user("MpkbDMOO8PQddQgB5VgBQdTMWF53")
#file_manager.log_action("gqZN3eCHF3V2er3Py3rlgk8u2t83", "test", "DeleteServer")
#firebase_manager.set_servers_not_running()
test: list[int] = [0, 987]
test.remove(85)
print(test)
pass