Skip to content

Commit

Permalink
Merge pull request #290 from chrox/fix_288
Browse files Browse the repository at this point in the history
fix parsing hpts and hptsh for login form
  • Loading branch information
Vitaliy Rodnenko committed May 11, 2015
2 parents 7ea2255 + 6d746d5 commit 8489a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geeknote/oauth.py
Expand Up @@ -190,8 +190,8 @@ def login(self):
{'oauth_token': self.tmpOAuthToken})

# parse hpts and hptsh from page content
hpts = re.search('.*"hpts":"(.*?)"', response.data)
hptsh = re.search('.*"hptsh":"(.*?)"', response.data)
hpts = re.search('.*\("hpts"\)\.value.*?"(.*?)"', response.data)
hptsh = re.search('.*\("hptsh"\)\.value.*?"(.*?)"', response.data)

if response.status != 200:
logging.error("Unexpected response status "
Expand Down

0 comments on commit 8489a87

Please sign in to comment.