Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
ensure that charity numbers aren't in bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
drkane committed Apr 14, 2020
1 parent 580c642 commit aaf80f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findthatcharity_import/spiders/ccew.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def set_charity(self, regno, charity):
def get_all_charities(self):
if self.redis:
for regno, charity in self.redis.hscan_iter('charities'):
yield (regno, pickle.loads(charity))
yield (regno.decode(), pickle.loads(charity))
else:
return self.charities.items()

Expand Down

0 comments on commit aaf80f2

Please sign in to comment.