Added overall image view and more blacklisted words.
This commit is contained in:
@@ -8,7 +8,8 @@ from .database import (
|
||||
get_all_scanned_subreddits,
|
||||
get_deep_dive_details,
|
||||
get_image_view_summary,
|
||||
get_weekly_summary_for_subreddit
|
||||
get_weekly_summary_for_subreddit,
|
||||
get_overall_image_view_summary
|
||||
)
|
||||
|
||||
app = Flask(__name__, template_folder='../templates')
|
||||
@@ -81,6 +82,17 @@ def weekly_image_view(name):
|
||||
date_range=date_range_str
|
||||
)
|
||||
|
||||
@app.route("/image/overall")
|
||||
def overall_image_view():
|
||||
"""The handler for the overall image-style dashboard."""
|
||||
tickers = get_overall_image_view_summary()
|
||||
current_date = datetime.utcnow().strftime("%Y-%m-%d")
|
||||
return render_template(
|
||||
"overall_image_view.html",
|
||||
tickers=tickers,
|
||||
current_date=current_date
|
||||
)
|
||||
|
||||
def start_dashboard():
|
||||
"""The main function called by the 'rstat-dashboard' command."""
|
||||
print("Starting Flask server...")
|
||||
|
Reference in New Issue
Block a user