|
|
@ -1,4 +1,4 @@
|
|
|
|
mode = 0 # CHANGE ME
|
|
|
|
mode = 1 # CHANGE ME
|
|
|
|
# 0 - client mode
|
|
|
|
# 0 - client mode
|
|
|
|
# 1 - server mode
|
|
|
|
# 1 - server mode
|
|
|
|
|
|
|
|
|
|
|
@ -52,12 +52,7 @@ def server_listen(conn_temp):
|
|
|
|
if data == 'get':
|
|
|
|
if data == 'get':
|
|
|
|
send = conv_list()
|
|
|
|
send = conv_list()
|
|
|
|
conn_temp.send(send.encode())
|
|
|
|
conn_temp.send(send.encode())
|
|
|
|
print(data)
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print(type(data))
|
|
|
|
|
|
|
|
print(data[0])
|
|
|
|
|
|
|
|
exit()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list_info.append([str(data), datetime.now()])
|
|
|
|
list_info.append([str(data), datetime.now()])
|
|
|
|
|
|
|
|
|
|
|
|
# Clear list
|
|
|
|
# Clear list
|
|
|
|