-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port back direct comparison enum and fix API key #688
Conversation
@@ -351,7 +351,7 @@ def validate_rewards_type(self, conf_obj): | |||
"Defaults to 'actual' rewards payout type.".format(REWARDS_TYPE) | |||
) | |||
|
|||
if conf_obj[REWARDS_TYPE].isEstimated(): | |||
if conf_obj[REWARDS_TYPE] == RewardsType.ESTIMATED: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is strange that conf_obj[REWARDS_TYPE]
can be a string which needs further investigations why this is happening. For now I just port back as a quick hotfix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you test for a string and make a case handling here? Maybe there is no proper cast in die config loader?
@vkresch can you please check for a consistent use of the variable name? tzpro_api_key or tz_pro_api_key I think it should be this: tzpro_api_key |
I agree, it matches the domain and the brand. |
sure I will update it |
Resolves #687 and API key naming fix.
Work effort: 0.5h