<commit_before>from flask import Blueprint
from flask import abort, flash, redirect, render_template, request, url_for
from flask.ext.login import current_user

from viaduct import application, db
from viaduct.helpers import flash_form_errors

module = Blueprint('pimpy', __name__)

@module.route('/pimpy/', methods=['GET', 'POST'])
def get_page(path=''):
	return render_template('pimpy/view_page.htm', page=True, path=path)
<commit_msg>forgot to add views.py?<commit_after>from flask import Blueprint
from flask import abort, flash, redirect, render_template, request, url_for
from flask.ext.login import current_user

from viaduct import application, db
from viaduct.helpers import flash_form_errors

module = Blueprint('pimpy', __name__)

@module.route('/pimpy/', methods=['GET', 'POST'])
@module.route('/pimpy/<minutesOrTasks>/<groups>', methods=['GET', 'POST'])
def view_page(type='all', groups=):

	# haal 
	list_items = []
	for group in current_user.groups.all():
		if type == 'tasks'
			for task in group.minutes
				list_items.extend(minute.tasks.all())
		elif type == 'minutes'
			for minute in group.minutes
				list_items.extend(minute.tasks.all())
			

	
	return render_template('pimpy/view_page.htm', list_items=list_items, page=True, path=path)

{'fraction_non_alphanumeric': 0.12936507936507938, 'fraction_numerical': 0.0, 'mean_word_length': 5.890710382513661, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2846375', 'n_tokens_mistral': 434, 'n_tokens_neox': 405, 'n_words': 106}