Reduce time delays

This commit is contained in:
Tim 2020-06-26 14:26:03 +01:00
parent adda6a78f9
commit 029265fc46
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D
1 changed files with 1 additions and 2 deletions

View File

@ -155,7 +155,7 @@ def play_live_item(rtc: object, payload: dict) -> None:
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
i = 0
for _ in json.loads(ret.text):
pl = {'max': 1, 'min': 2, 'delay': 1, 'name': 'controller_item_show', 'payload': {'id': i}}
pl = {'max': 1, 'min': 2, 'delay': 0.2, 'name': 'controller_item_show', 'payload': {'id': i}}
rtc.tasks.append(Task(rtc, pl))
i += 1
assert ret.status_code == 200, f'{ret.status_code} returned from show'
@ -165,5 +165,4 @@ def controller_item_show(rtc: object, payload: dict) -> None:
id = payload['id']
print_text('Controller_item_show')
ret = requests.post(rtc.base_url + 'controller/show', json=dict(id=int(id)))
human_delay()
assert ret.status_code == 204, ret.status_code