fix: Incorrect redirect in asn

pull/17/head
Raphaël Vinot 2022-01-05 14:59:31 +01:00
parent 438b8a9b52
commit 47fb89e6e1
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def index():
def asn_details():
load_session()
if 'asn' not in session:
return redirect(url_for('/'))
return redirect(url_for('index'))
asn_descriptions = bgpranking.get_asn_descriptions(asn=session['asn'], all_descriptions=True)['response']
sources = bgpranking.get_sources(date=session['date'])['response']
prefix = session.pop('prefix', None)