1
0
mirror of https://github.com/r4sas/Niflheim-api synced 2025-01-26 06:34:14 +00:00

Update send-view.py

This commit is contained in:
yakamok 2018-07-03 01:48:56 +02:00 committed by GitHub
parent 32976b2638
commit 01f7e09ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,11 +8,12 @@ SERVER = "y.yakamo.org"
#gives the option to get data from an external server instead and send that #gives the option to get data from an external server instead and send that
#if no options given it will default to localhost instead #if no options given it will default to localhost instead
if len(sys.argv) == 3: #if len(sys.argv) == 3:
host_port = (sys.argv[1], sys.argv[2]) # host_port = (sys.argv[1], sys.argv[2])
else: #else:
host_port = ('localhost', 9001) # host_port = ('localhost', 9001)
host_port = ('localhost', 9001)
def send_view_to_server(tosend): def send_view_to_server(tosend):
if tosend: if tosend:
attempts = 3 attempts = 3