mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Handling situation where React Router may not be available for a Tag Label.
This commit is contained in:
parent
0920383963
commit
2cbc6e00e0
8 changed files with 56 additions and 33 deletions
|
|
@ -201,7 +201,7 @@ def download_channel(id_: int):
|
|||
@optional_session
|
||||
def search_channels_by_directory(name: str, limit: int = 5, session: Session = None) -> List[Channel]:
|
||||
channels = session.query(Channel) \
|
||||
.filter(Channel.directory.ilike(f'%{name}%')) \
|
||||
.filter(Channel.name.ilike(f'%{name}%')) \
|
||||
.order_by(asc(Channel.name)) \
|
||||
.limit(limit) \
|
||||
.all()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue