Skip to content

Commit

Permalink
Bumped version to v0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pantunes committed Dec 6, 2020
1 parent 324bf7f commit d7d2e36
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog
All changes will be registered here per release.

## [0.8.3] - Current date
## [0.8.3] - 2020-12-06
Added Coins/Tokens page.
Added feature to list/show/mark Coins/Tokens as Favourites.
Changed from `LEND` to `AAVE` Token.
Expand Down
2 changes: 1 addition & 1 deletion xtcryptosignals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
__maintainer__ = "Paulo Antunes"
__email__ = "[email protected]"

__version__ = "0.8.3rc"
__version__ = "0.8.3"
8 changes: 2 additions & 6 deletions xtcryptosignals/tasks/schemas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BaseSchema(Schema):

def post_load(self, data):
data_symbol = data["symbol"][-3:]
if data_symbol in ("ETH", "BTC"):
if data_symbol in s.COIN_OR_TOKEN_REFERENCE[:2]:
key = s.REDIS_KEY_TICKER.format(
source=s.BINANCE,
symbol=data_symbol + "USDT",
Expand All @@ -35,9 +35,5 @@ def post_load(self, data):
deser_row = json.loads(ser_row)
price = deser_row["price"]
data["price_usdt"] = data["price"] * float(price)
elif data_symbol == "DAI":
data["price_usdt"] = data["price"]
elif data_symbol == "USD":
data["price_usdt"] = data["price"]
elif data["symbol"][-4:] == "USDT":
elif data_symbol in s.COIN_OR_TOKEN_REFERENCE[2:]:
data["price_usdt"] = data["price"]
3 changes: 3 additions & 0 deletions xtcryptosignals/tasks/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@

STATIC_COINS_TOKENS_LOGOS_FOLDER = "/static/imgs/logos/"

# order matters in class BaseSchema
COIN_OR_TOKEN_REFERENCE = ("ETH", "BTC", "DAI", "USD", "USDT",)

from xtcryptosignals.settings import * # noqa
from xtcryptosignals.tasks.settings_local import * # noqa

Expand Down

0 comments on commit d7d2e36

Please sign in to comment.