From 257c54d19b9a04b4ee652913939cf7af13d1f3af Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 25 Oct 2021 14:05:02 -0700 Subject: [PATCH] Commit when adding channel after navigating to its page. --- frontends/ycdl_flask/backend/endpoints/channel_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py b/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py index 7be1515..88f6d6c 100644 --- a/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py +++ b/frontends/ycdl_flask/backend/endpoints/channel_endpoints.py @@ -64,7 +64,7 @@ def _render_videos_listing(videos, channel, state, orderby): @site.route('/channel//') def get_channel(channel_id, state=None): try: - channel = common.ycdldb.add_channel(channel_id) + channel = common.ycdldb.add_channel(channel_id, commit=True) except ycdl.ytapi.ChannelNotFound: flask.abort(404)