Skip to content

Commit

Permalink
None or []
Browse files Browse the repository at this point in the history
  • Loading branch information
maximdanilchenko committed Aug 10, 2018
1 parent a0a1394 commit 0f0ad3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion async_pq/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def pop(self, limit: int=1, with_ack: bool=True) -> Tuple[int, list]:
""",
request_id,
limit,
)
) or []
if not data or not with_ack:
await self.ack(request_id)
return request_id, [i[0] for i in data]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def readme(fname):

setup(
name='async-pq',
version='0.2.0',
version='0.2.1',
description='Python async api for creating and managing queues in postgres',
long_description=readme('README.md'),
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def run_database(self):
client.images.pull('postgres:9.6')
postgres_container = client.containers.create(
image='postgres:9.6',
ports={5431: 5432},
ports={5432: 5431},
environment={
'POSTGRES_PASSWORD': POSTGRES_PASSWORD,
'POSTGRES_USER': POSTGRES_USER,
Expand Down

0 comments on commit 0f0ad3f

Please sign in to comment.