From ceffdcfe245216c9708c3b70319ca679b5c5ed88 Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 12 Oct 2020 08:15:45 +0200 Subject: [PATCH] merge conflict --- app/routes.py | 14 ++++++-------- requirements.txt | 3 +++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/routes.py b/app/routes.py index f7b168f..bab224b 100644 --- a/app/routes.py +++ b/app/routes.py @@ -28,7 +28,7 @@ from youtube_search import YoutubeSearch from app import app, db from app.forms import LoginForm, RegistrationForm, EmptyForm, SearchForm, ChannelForm from app.models import User, twitterPost, ytPost, Post, youtubeFollow, twitterFollow -from youtube import comments, utils +from youtube import comments, utils, channel as ytch, search as yts from youtube import watch as ytwatch ######################################### from youtube_data import search as yts @@ -455,11 +455,14 @@ def watch(): id = request.args.get('v', None) info = ytwatch.extract_info(id, False, playlist_id=None, index=None) <<<<<<< Updated upstream +<<<<<<< Updated upstream <<<<<<< Updated upstream # Use nginx best_formats = ["22", "18", "34", "35", "36", "37", "38", "43", "44", "45", "46"] ======= ======= +>>>>>>> Stashed changes +======= >>>>>>> Stashed changes vsources = ytwatch.get_video_sources(info, False) @@ -748,13 +751,8 @@ def registrations_status_icon(): if count >= config['maxInstanceUsers'] or config['maxInstanceUsers'] == 0: return redirect(url_for('static', filename='img/close.png')) else: - return redirect(url_for('static', filename='img/open.png')) - - -@app.route('/registrations_status/text') -def registrations_status_text(): - count = db.session.query(User).count() - return "{c}/{t}".format(c=count, t=config['maxInstanceUsers']) + filen = url_for('static', filename='img/open.png') + caniregister = True @app.route('/error/') diff --git a/requirements.txt b/requirements.txt index d4e34b5..ceabea6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -43,6 +43,9 @@ pyparsing==2.4.7 PySocks==1.7.1 python-anticaptcha==0.7.1 <<<<<<< Updated upstream +<<<<<<< Updated upstream +>>>>>>> Stashed changes +======= >>>>>>> Stashed changes ======= >>>>>>> Stashed changes