Remove unnecessary code
This commit is contained in:
parent
91a3a2bde6
commit
53c000cb14
1 changed files with 2 additions and 8 deletions
|
@ -54,14 +54,8 @@ def create_server(isfirstrun=False):
|
|||
srv_pass = input('Password: ')
|
||||
print('OK\n')
|
||||
new_server = [{"name":srv_name,"address":srv_addr,"port":srv_port,"password":srv_pass}]
|
||||
|
||||
if(isfirstrun):
|
||||
json_obj = json.dumps(new_server,indent=4)
|
||||
with open(servers_file, "w") as outfile:
|
||||
outfile.write(json_obj)
|
||||
else:
|
||||
servers = servers + new_server
|
||||
write_servers()
|
||||
servers = servers + new_server
|
||||
write_servers()
|
||||
initial_choice()
|
||||
|
||||
def pop_server():
|
||||
|
|
Loading…
Reference in a new issue