update of python scripts
This commit is contained in:
parent
c46be0d3e5
commit
c8da3418bf
@ -8,7 +8,7 @@ import host
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
BUFFER_SIZE = 500
|
BUFFER_SIZE = 500
|
||||||
LEAVE_OUT = 2 # this leaves out every second sentence
|
LEAVE_OUT = 2 # that leaves out every second sentence
|
||||||
|
|
||||||
address = 'http://'+host.concordia_host
|
address = 'http://'+host.concordia_host
|
||||||
if len(host.concordia_port) > 0:
|
if len(host.concordia_port) > 0:
|
||||||
|
@ -13,7 +13,7 @@ BUFFER_SIZE = 500
|
|||||||
def addSources(sources_buffer):
|
def addSources(sources_buffer):
|
||||||
data = {
|
data = {
|
||||||
'operation': 'addSources',
|
'operation': 'addSources',
|
||||||
'sources':sources
|
'sources':sources_buffer
|
||||||
}
|
}
|
||||||
|
|
||||||
req = urllib2.Request(address)
|
req = urllib2.Request(address)
|
||||||
|
Loading…
Reference in New Issue
Block a user