2
0

remove debug line in index view

This commit is contained in:
Stefan Bühler 2022-04-07 15:12:25 +02:00
parent 2e6b368670
commit 1e23b1205a

View File

@ -99,7 +99,6 @@ async def user_lookup() -> cptypes.MacPublicState:
@app.route('/', methods=['GET']) @app.route('/', methods=['GET'])
async def index(missing_accept: bool=False): async def index(missing_accept: bool=False):
state = await user_lookup() state = await user_lookup()
return await render_i18n_template('index_active.html', state=state, missing_accept=missing_accept)
if not state.mac: if not state.mac:
return await render_i18n_template('index_unknown.html', state=state, missing_accept=missing_accept) return await render_i18n_template('index_unknown.html', state=state, missing_accept=missing_accept)
elif state.allowed: elif state.allowed: