From 2f2053a236fba74d5968059b721c6a829ad7f132 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Mon, 2 Aug 2021 12:03:08 -0700 Subject: [PATCH] update news page --- web/app.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/app.py b/web/app.py index d810a80..e102d46 100644 --- a/web/app.py +++ b/web/app.py @@ -1582,10 +1582,13 @@ def create_app(): ## view_news = News.query.order_by(News.time.desc()).paginate(page=page, per_page=1) #content = '''''' - content = '' + content = '''

View All News

''' + art_count = 0 for article in view_news: - print(article.time) - content = content + ''' + if request.args.get('all_news'): + art_count = 1 + if art_count < 16: + content = content + '''
@@ -1599,6 +1602,7 @@ def create_app(): ''' + article.text + '''

 

''' + art_count = art_count + 1 #content = content + '''

 

''' return render_template('flask_user_layout.html', markup_content = Markup(content)) @@ -1786,10 +1790,11 @@ def create_app(): ## @login_required def tg_list(): cbl = BridgeList.query.filter_by(public_list=True).all() - print(cbl) +## print(cbl) content = '''

 

Note: Talkgroups listed here may not be available on all servers. See Passphrase(s) for complete list of talkgroup availability per server.

+

Download talkgroup CSV