fix errors

This commit is contained in:
Tim 2020-10-20 12:57:59 +01:00
parent 8c0769f93f
commit a0cfa10278
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D
2 changed files with 3 additions and 6 deletions

View File

@ -2,4 +2,3 @@
process_name: live_item
step1:
name: play_live_items

View File

@ -151,7 +151,7 @@ def service_item_show(rtc: object, payload: dict) -> None:
def play_live_items(rtc: object) -> None:
print_text(f'Play_live_items')
print_text('Play_live_items')
ret = requests.get(rtc.base_url + 'controller/live-items')
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
i = 0
@ -163,13 +163,11 @@ def play_live_items(rtc: object) -> None:
def play_live_item(rtc: object) -> None:
print_text(f'Play_live_item')
print_text('Play_live_item')
ret = requests.get(rtc.base_url + 'controller/live-item')
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
i = 0
aa = json.loads(ret.text)
bb = 1
print_text(aa)
def controller_item_show(rtc: object, payload: dict) -> None:
id = payload['id']