def do_admin_retire_deck() -> wrappers.Response: form = RetireForm(request.form) if form.validate(): d = ds.load_deck(form.entry) lg.retire_deck(d) return redirect(url_for('admin_retire_deck')) return make_response(admin_retire_deck(form))
def retire_deck() -> Union[str, Response]: form = RetireForm(request.form, discord_user=session.get('id')) if form.validate(): d = ds.load_deck(form.entry) ps.associate(d, session['id']) lg.retire_deck(d) return redirect(url_for('signup')) return retire(form)