mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 03:46:29 -05:00
Getting all channel properties during session.
This commit is contained in:
parent
be852e3d46
commit
a0ad941425
1 changed files with 4 additions and 0 deletions
|
|
@ -399,6 +399,8 @@ def get_or_create_channel(source_id: str = None, url: str = None, name: str = No
|
|||
"""
|
||||
try:
|
||||
channel = get_channel(source_id=source_id, url=url, name=name, return_dict=False)
|
||||
# Get all properties while we have the session.
|
||||
channel.dict()
|
||||
return channel
|
||||
except UnknownChannel:
|
||||
pass
|
||||
|
|
@ -419,6 +421,8 @@ def get_or_create_channel(source_id: str = None, url: str = None, name: str = No
|
|||
channel = create_channel(data=data, return_dict=False)
|
||||
# Create the directory now that the channel is approved.
|
||||
channel_directory.mkdir(exist_ok=True)
|
||||
# Get all properties while we have the session.
|
||||
channel.dict()
|
||||
|
||||
return channel
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue