mirror of
https://gitlab.com/openlp/openlp_api_tester.git
synced 2024-12-22 12:32:47 +00:00
Timing Cleanups
This commit is contained in:
parent
670c658dc6
commit
4183cc6806
@ -66,7 +66,7 @@ def search_and_add(rtc: object, payload: dict) -> None:
|
|||||||
while True:
|
while True:
|
||||||
let = random.choice(string.ascii_letters)
|
let = random.choice(string.ascii_letters)
|
||||||
ret = requests.get(rtc.base_url + f'plugins/{plugin}/search?text={let}')
|
ret = requests.get(rtc.base_url + f'plugins/{plugin}/search?text={let}')
|
||||||
if ret.status_code == 200 and ret.text is not '[]\n':
|
if ret.status_code == 200 and ret.text != '[]\n':
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
let = random.choice(string.ascii_letters)
|
let = random.choice(string.ascii_letters)
|
||||||
|
Loading…
Reference in New Issue
Block a user