mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 13:49:57 -05:00
Fixing video search bug.
This commit is contained in:
parent
a95cbd74c9
commit
3f7145c940
2 changed files with 9 additions and 3 deletions
|
|
@ -139,8 +139,9 @@ def video_search(
|
|||
total = results[0]['total'] if results else 0
|
||||
ranked_ids = [i['id'] for i in results]
|
||||
|
||||
results = get_ranked_models(ranked_ids, Video)
|
||||
results = [i.__json__() for i in results]
|
||||
with get_db_session() as session:
|
||||
results = get_ranked_models(ranked_ids, Video, session=session)
|
||||
results = [i.__json__() for i in results]
|
||||
|
||||
return results, total
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue