Fix error with exports

This commit is contained in:
pluja 2020-07-27 17:43:07 +02:00
parent 3fbdadf705
commit cd8c1fc4b0
2 changed files with 2 additions and 1 deletions

1
app/data_export.json Normal file
View File

@ -0,0 +1 @@
{"twitter": [{"username": "aantonop"}, {"username": "Trezor"}, {"username": "aitor13023985"}, {"username": "guaridadelzorro"}, {"username": "elonmusk"}, {"username": "bitcoin"}, {"username": "monero"}, {"username": "xmroutreach"}, {"username": "Locha_io"}, {"username": "randybrito"}, {"username": "btcven"}, {"username": "Snowden"}, {"username": "_prestwich"}, {"username": "TradeOnFire"}], "youtube": [{"channelId": "UCjr2bPAyPV7t35MvcgT3W8Q"}, {"channelId": "UCJWCJCWOxBYSi5DhCieLOLQ"}, {"channelId": "UCW3iqZr2cQFYKdO9Kpa97Yw"}, {"channelId": "UCLXo7UDZvByw2ixzpQCufnA"}, {"channelId": "UCR9sFzaG9Ia_kXJhfxtFMBA"}, {"channelId": "UCbdSYaPD-lr1kW27UJuk8Pw"}, {"channelId": "UCa3DVlGH2_QhvwuWlPa6MDQ"}, {"channelId": "UComoqWnjQlH7JpvqfyGnWNA"}, {"channelId": "UCA58hhLv4pdgDjBW5oNSklA"}]}

View File

@ -72,7 +72,7 @@ def settings():
def export():
a = exportData()
if a:
return send_from_directory('data_export.json', as_attachment=True)
return send_from_directory('.', 'data_export.json', as_attachment=True)
else:
return redirect(url_for('/error/405'))