diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-07-21 21:48:54 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-07-21 21:48:54 -0700 |
commit | fc295ac93d0ad6b0272aa94f2d2ea44002ecbc48 (patch) | |
tree | 28b2ee80c9356303a0a8732ce09f0dd6c1fb6d16 /youtube/comments.py | |
parent | 167483af21fb252622170c4b5e3ae3ce81f58733 (diff) | |
download | yt-local-fc295ac93d0ad6b0272aa94f2d2ea44002ecbc48.tar.lz yt-local-fc295ac93d0ad6b0272aa94f2d2ea44002ecbc48.tar.xz yt-local-fc295ac93d0ad6b0272aa94f2d2ea44002ecbc48.zip |
Convert comment posting system to flask framework
Diffstat (limited to 'youtube/comments.py')
-rw-r--r-- | youtube/comments.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/youtube/comments.py b/youtube/comments.py index 768bc13..ba82154 100644 --- a/youtube/comments.py +++ b/youtube/comments.py @@ -258,11 +258,16 @@ def get_comments_page(): comments_info['comment_links'] = [(other_sort_text, other_sort_url)] + comment_posting_box_info = { + 'form_action': '' if replies else util.URL_ORIGIN + '/post_comment', + 'video_id': comments_info['video_id'], + 'accounts': accounts.account_list_data(), + 'include_video_id_input': not replies, + 'replying': replies, + } + return flask.render_template('comments_page.html', comments_info = comments_info, - - form_action = '' if replies else util.URL_ORIGIN + '/post_comment', - include_video_id_input = not replies, - accounts = accounts.account_list_data(), + comment_posting_box_info = comment_posting_box_info, ) |