Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions onesky/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def create_auth_variables(self):
timestamp = str(int(time.time()))

dev_hash = hashlib.md5()
dev_hash.update(timestamp)
dev_hash.update(self.api_secret)
dev_hash.update(timestamp.encode('utf-8'))
dev_hash.update(self.api_secret.encode('utf-8'))

return {
'api_key': self.api_key,
Expand Down
2 changes: 1 addition & 1 deletion onesky/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import urllib
import sys

import client
from onesky import client


# helper to simplify the boilerplate wrapping all the API calls with command
Expand Down