def plot_favourites(): """View and edit saved plots.""" return render_template( 'users/plot_favourites.html', favourite_plots = get_plot_favourites(User), user_token = current_user.api_token, )
def create_dashboard(dashboard_id=None): """Create a new dashboard.""" return render_template( 'users/create_dashboard.html', dashboard_id=dashboard_id, favourite_plots=get_plot_favourites(User), user_token=current_user.api_token, )