Skip to content

Commit

Permalink
Replace sbd_exchange_rate with hbd_exchange_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
emre committed Dec 30, 2020
1 parent 2bfa264 commit 891a7b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -14,7 +14,7 @@
license='MIT',
author='emre yilmaz',
author_email='mail@emreyilmaz.me',
description='STEEM Witness updates made easy.',
description='HIVE Witness updates made easy.',
entry_points={
'console_scripts': [
'transmitter = transmitter.main:main',
Expand Down
2 changes: 1 addition & 1 deletion transmitter/__init__.py
@@ -1 +1 @@
__version__ = '0.2.9'
__version__ = '0.2.10'
10 changes: 5 additions & 5 deletions transmitter/main.py
Expand Up @@ -180,15 +180,15 @@ def set(self, properties):
props = {}
for _property in properties:
if isinstance(_property, dict):
# sbd_exchange_rate has a special case
# hbd_exchange_rate has a special case
# where it's value is a dict
# instead of a straight string or integer.
key = "sbd_exchange_rate"
val = _property["sbd_exchange_rate"]
key = "hbd_exchange_rate"
val = _property["hbd_exchange_rate"]
else:
key, val = _property.split("=")
if isinstance(_property, dict):
props["sbd_exchange_rate"] = val
props["hbd_exchange_rate"] = val
else:
try:
props[key] = int(val)
Expand Down Expand Up @@ -216,7 +216,7 @@ def publish_feed(self):
quote = Amount(
round(float(1) / float(self.peg_multiplier), 3), "HIVE")
properties = [{
"sbd_exchange_rate": {
"hbd_exchange_rate": {
"base": base, "quote": quote}
}]
logger.info(f"Base price: {base}, Quote price: {quote}")
Expand Down

0 comments on commit 891a7b3

Please sign in to comment.