mirror of
https://github.com/hubHarmony/servii-backend.git
synced 2024-11-18 05:50:31 +00:00
[~] No production printing.
This commit is contained in:
parent
f52696d38a
commit
bcf096cda2
@ -117,11 +117,9 @@ class MinecraftServerManager:
|
|||||||
if port not in self.offline_ports:
|
if port not in self.offline_ports:
|
||||||
self.offline_ports.append(port)
|
self.offline_ports.append(port)
|
||||||
else:
|
else:
|
||||||
print(f"Closing {port} server.")
|
|
||||||
user_id = server_info.get("user_id", None)
|
user_id = server_info.get("user_id", None)
|
||||||
name = server_info.get("name", None)
|
name = server_info.get("name", None)
|
||||||
server_stamp = server_info.get("time", None)
|
server_stamp = server_info.get("time", None)
|
||||||
print(f"{user_id}, {name}, {server_stamp}")
|
|
||||||
firebase_manager.close_idle_server(
|
firebase_manager.close_idle_server(
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
name=name,
|
name=name,
|
||||||
@ -131,8 +129,6 @@ class MinecraftServerManager:
|
|||||||
else:
|
else:
|
||||||
if port in self.offline_ports:
|
if port in self.offline_ports:
|
||||||
self.offline_ports.remove(port)
|
self.offline_ports.remove(port)
|
||||||
|
|
||||||
print(f"Offline_servers : {self.offline_ports}")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user