def atts(): if g.user.is_admin(): atts = Uploads.get_atts() return render_template('admin/atts.html', atts=atts) else: return redirect(url_for('index1'))