def summary_tag_categories(summary_tag): info_requester = InfoRequestHandler(current_user.id) file_info = info_requester.get_file_details() categories_for_summary_tag = info_requester.get_categories(summary_tag=summary_tag) return render_template('summary_tag_categories.html', title='summary of categories for ' + summary_tag, file_info=[file_info[0], file_info[1]], summary_tag=summary_tag, metadata=info_requester.get_category_metadata_list(categories=categories_for_summary_tag))
def frequency_categories(frequency): # form = Form() info_requester = InfoRequestHandler(current_user.id) file_info = info_requester.get_file_details() categories_for_frequency = info_requester.get_categories(category_type='expense', frequency=frequency) return render_template('frequency_categories.html', title='summary of categories for ' + frequency, file_info=[file_info[0], file_info[1]], frequency=frequency, metadata=info_requester.get_category_metadata_list(categories=categories_for_frequency))