Skip to content

Commit

Permalink
Tidy up and fix some problems (key reset not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathsman5133 committed Apr 25, 2019
1 parent 62e8f6a commit 87eaa3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coc/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ async def reset_key(self, key):
# TODO: Distinguish/recognise by key name rather than current ip for running clients on multiple IPs
# should probably put something else in here
# to distinguish each key like a date
key_name = 'coc.py created key'
key_name = self.key_names
# Also, probably fix this as well
key_description = 'learn more about this project at: https://github.com/mathsman5133/coc.py'
key_description = "Created on {}".format(datetime.now().strftime('%c'))
whitelisted_ips = [ip]

response_dict, session = await self.login_to_site(self.email, self.password)
Expand All @@ -261,7 +261,7 @@ async def reset_key(self, key):
# now we can set the new key which is the first
# one in self._keys, then start the cycle over.
self._keys[0] = new_key
self.keys = cycle(self.keys)
self.keys = cycle(self._keys)
self.client.dispatch('key_reset', new_key)

# clans
Expand Down

0 comments on commit 87eaa3f

Please sign in to comment.