from functools import wraps from app import app, db from app.tables import Swipe, User from flask import request, redirect, url_for, render_template, session, abort from sqlalchemy import desc # from flask_login import login_user, login_required, logout_user, current_user