Skip to content
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

Tanner develop fixes phase #2 #263

Merged
merged 4 commits into from
Jul 18, 2018
Merged

Tanner develop fixes phase #2 #263

merged 4 commits into from
Jul 18, 2018

Conversation

viskey98
Copy link
Collaborator

This will fix the following:

  • JSON error due to different python version.
  • NoneType user-agent error.

@coveralls
Copy link

coveralls commented Jul 17, 2018

Pull Request Test Coverage Report for Build 696

  • 9 of 12 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 55.739%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tanner/session_analyzer.py 9 12 75.0%
Totals Coverage Status
Change from base Build 688: 0.09%
Covered Lines: 913
Relevant Lines: 1638

💛 - Coveralls

@@ -51,7 +51,7 @@ def __init__(self, redis_client):
if not query_res:
return 'Invalid SNARE UUID'
for (i, val) in enumerate(query_res):
query_res[i] = json.loads(val)
query_res[i] = json.loads(val.decode("utf-8"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd better put encoding things into redis query

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zrevrangebyscore redis query doesn't have encoding parameter. So except for this case, I have added encoding things in the redis query itself. Please look into it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it has this parameter (maybe they forgot to add it into the docs) :)

@viskey98
Copy link
Collaborator Author

@afeena That redis encoding is fixed. Please look into it now :)

@afeena afeena merged commit e56071b into mushorg:develop Jul 18, 2018
@viskey98 viskey98 deleted the fixes#2 branch July 21, 2018 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants