feat(playout): use single clients instance (#1980)
- Use legacy_client across playout code to make the difference between the old and new clients. - Setup clients during initialization, and pass clients down to the different apps.
This commit is contained in:
parent
f03605a6ce
commit
368350b269
9 changed files with 49 additions and 43 deletions
|
@ -12,11 +12,11 @@ from requests.exceptions import ConnectionError, Timeout
|
|||
|
||||
|
||||
class PypoFile(Thread):
|
||||
def __init__(self, schedule_queue):
|
||||
def __init__(self, schedule_queue, api_client: ApiClient):
|
||||
Thread.__init__(self)
|
||||
self.media_queue = schedule_queue
|
||||
self.media = None
|
||||
self.api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
|
||||
def copy_file(self, media_item):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue