From cd8c1fc4b0320d2708e8a6459506eb31dcd3d63c Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 27 Jul 2020 17:43:07 +0200 Subject: [PATCH] Fix error with exports --- app/data_export.json | 1 + app/routes.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 app/data_export.json diff --git a/app/data_export.json b/app/data_export.json new file mode 100644 index 0000000..bdb151c --- /dev/null +++ b/app/data_export.json @@ -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"}]} \ No newline at end of file diff --git a/app/routes.py b/app/routes.py index b1b00a2..d1f1289 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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'))