fix file srch
This commit is contained in:
parent
8ab03dabda
commit
b18a07ae6b
@ -51,7 +51,7 @@ class U2idx(object):
|
|||||||
uv = [wark[:16], wark]
|
uv = [wark[:16], wark]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return self.run_query(vols, uq, uv, "", [])[0]
|
return self.run_query(vols, uq, uv, {})[0]
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
raise Pebkac(500, repr(ex))
|
raise Pebkac(500, repr(ex))
|
||||||
|
|
||||||
@ -99,8 +99,16 @@ class U2idx(object):
|
|||||||
self.log("qs: {} {} , {}".format(uq, repr(uv), repr(targs)))
|
self.log("qs: {} {} , {}".format(uq, repr(uv), repr(targs)))
|
||||||
|
|
||||||
done_flag = []
|
done_flag = []
|
||||||
self.active_id = "{:.6f}_{}".format(time.time(), threading.current_thread().ident)
|
self.active_id = "{:.6f}_{}".format(
|
||||||
thr = threading.Thread(target=self.terminator, args=(self.active_id, done_flag, ))
|
time.time(), threading.current_thread().ident
|
||||||
|
)
|
||||||
|
thr = threading.Thread(
|
||||||
|
target=self.terminator,
|
||||||
|
args=(
|
||||||
|
self.active_id,
|
||||||
|
done_flag,
|
||||||
|
),
|
||||||
|
)
|
||||||
thr.daemon = True
|
thr.daemon = True
|
||||||
thr.start()
|
thr.start()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user