From 709e88055df7747adeab3eb783610f05b2352617 Mon Sep 17 00:00:00 2001 From: Paulo Antunes Date: Sat, 9 Oct 2021 23:30:51 +0200 Subject: [PATCH] Code refactor --- xtcryptosignals/client/api/tools/views.py | 2 +- xtcryptosignals/server/api/charts/views.py | 2 -- xtcryptosignals/settings.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/xtcryptosignals/client/api/tools/views.py b/xtcryptosignals/client/api/tools/views.py index 7b638e17..a5e35a9b 100644 --- a/xtcryptosignals/client/api/tools/views.py +++ b/xtcryptosignals/client/api/tools/views.py @@ -84,7 +84,7 @@ def tether(coin_or_token): return dict( template_name_or_list="tools/tether.html", frequency=g.HISTORY_FREQUENCY[0], - frequencies_charts=["1h", "1d", "4d", "1w", "4w"], + frequencies_charts=["1h", "1d", "1w", "4w"], coin_or_token=coin_or_token, reference=g.COINS_OR_TOKENS_REFERENCE[coin_or_token], ) diff --git a/xtcryptosignals/server/api/charts/views.py b/xtcryptosignals/server/api/charts/views.py index a9a36855..d4f4d397 100644 --- a/xtcryptosignals/server/api/charts/views.py +++ b/xtcryptosignals/server/api/charts/views.py @@ -46,7 +46,6 @@ def get(self, frequency): """ if frequency not in ( "1d", - "4d", "1w", "4w", ): @@ -110,7 +109,6 @@ def get(self, frequency): if frequency not in ( "1h", "1d", - "4d", "1w", "4w", ): diff --git a/xtcryptosignals/settings.py b/xtcryptosignals/settings.py index b6ae8b92..293a7fe0 100644 --- a/xtcryptosignals/settings.py +++ b/xtcryptosignals/settings.py @@ -13,7 +13,6 @@ # mongodb collections created during runtime HISTORY_FREQUENCY = ( str(TICKER_SCHEDULE) + "s", - "30s", "1m", "10m", "30m", @@ -21,7 +20,6 @@ "4h", "12h", "1d", - "4d", "1w", "4w", "12w",