Skip to content

Commit

Permalink
Code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pantunes committed Oct 9, 2021
1 parent 8f8b6d8 commit 709e880
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion xtcryptosignals/client/api/tools/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
)
Expand Down
2 changes: 0 additions & 2 deletions xtcryptosignals/server/api/charts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def get(self, frequency):
"""
if frequency not in (
"1d",
"4d",
"1w",
"4w",
):
Expand Down Expand Up @@ -110,7 +109,6 @@ def get(self, frequency):
if frequency not in (
"1h",
"1d",
"4d",
"1w",
"4w",
):
Expand Down
2 changes: 0 additions & 2 deletions xtcryptosignals/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
# mongodb collections created during runtime
HISTORY_FREQUENCY = (
str(TICKER_SCHEDULE) + "s",
"30s",
"1m",
"10m",
"30m",
"1h",
"4h",
"12h",
"1d",
"4d",
"1w",
"4w",
"12w",
Expand Down

0 comments on commit 709e880

Please sign in to comment.