Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
bug: Fix all_channels to match registration UAID format
Browse files Browse the repository at this point in the history
* Fix tests to match how UAID is presented to functions.

Closes #1330
  • Loading branch information
jrconlin committed Apr 25, 2019
1 parent 64c64f7 commit bd21f06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autopush/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def all_channels(self, uaid):
# update that list as well using register_channel()
result = self.table.get_item(
Key={
'uaid': hasher(uaid),
'uaid': hasher(uuid.UUID(uaid).hex),
'chidmessageid': ' ',
},
ConsistentRead=True
Expand Down
2 changes: 1 addition & 1 deletion autopush/tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def setUp(self):
prefix="message_int_test",
boto_resource=self.resource)
self.real_table = table
self.uaid = str(uuid.uuid4())
self.uaid = uuid.uuid4().hex

def test_non_rotating_tables(self):
message_tablename = "message_int_test"
Expand Down

0 comments on commit bd21f06

Please sign in to comment.