Remove unnecessary code
This commit is contained in:
parent
91a3a2bde6
commit
53c000cb14
1 changed files with 2 additions and 8 deletions
|
@ -54,12 +54,6 @@ def create_server(isfirstrun=False):
|
||||||
srv_pass = input('Password: ')
|
srv_pass = input('Password: ')
|
||||||
print('OK\n')
|
print('OK\n')
|
||||||
new_server = [{"name":srv_name,"address":srv_addr,"port":srv_port,"password":srv_pass}]
|
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
|
servers = servers + new_server
|
||||||
write_servers()
|
write_servers()
|
||||||
initial_choice()
|
initial_choice()
|
||||||
|
|
Loading…
Reference in a new issue