diff --git a/web/app.py b/web/app.py
index 0a113ed..cd6580d 100644
--- a/web/app.py
+++ b/web/app.py
@@ -154,7 +154,7 @@ def create_app():
# User information
first_name = db.Column(db.String(100), nullable=False, server_default='')
last_name = db.Column(db.String(100), nullable=False, server_default='')
- dmr_ids = db.Column(db.String(100), nullable=False, server_default='')
+ dmr_ids = db.Column(db.String(1000), nullable=False, server_default='')
city = db.Column(db.String(100), nullable=False, server_default='')
notes = db.Column(db.String(100), nullable=False, server_default='')
#Used for initial approval
@@ -1638,7 +1638,6 @@ def create_app():
return render_template('flask_user_layout.html', markup_content = Markup(content))
-## if news_enabled:
@app.route('/news') #, methods=['POST', 'GET'])
## @login_required
def view_news():
@@ -1662,7 +1661,7 @@ def create_app():
-''' + article.date + ''' |
+''' + article.date + ''' - Link |
''' + article.text + ''' |
@@ -1672,6 +1671,29 @@ def create_app():
#content = content + '''
'''
return render_template('flask_user_layout.html', markup_content = Markup(content))
+ @app.route('/news/') #, methods=['POST', 'GET'])
+ def view_arts(article):
+
+ view_arti = News.query.filter_by(id=article).first()
+
+ content = '''
+
+
+
+''' + view_arti.subject + '''
+ |
+
+
+''' + view_arti.date + ''' |
+
+
+''' + view_arti.text + ''' |
+
+
'''
+ return render_template('flask_user_layout.html', markup_content = Markup(content))
+
+
+
@app.route('/add_news', methods=['POST', 'GET'])
@login_required
@roles_required('Admin')
@@ -1744,7 +1766,7 @@ def create_app():
content = content + '''
-Delete: ''' + a.subject + ''' |
+''' + a.subject + ''' | Delete |
''' + a.date + ''' |
''' + str(a.id) + ''' |