Skip to content

Commit

Permalink
flake
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin on chickenita committed Sep 7, 2023
1 parent cd4e070 commit f9bc82b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pypeman/msgstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ async def total(self):
return 0

async def delete(self, id):
"""
we delete nothing here, but return what would have been deleted
(for testing)
"""
return {'id': id, 'state': 'processed', 'message': None}


Expand Down Expand Up @@ -517,7 +521,7 @@ async def delete(self, id):
if not fpath.exists():
raise IndexError

with open(fpath, "rb") as f:
with fpath.open("rb") as f:
msg = Message.from_json(f.read().decode('utf-8'))

data_to_return = {'id': id, 'state': await self.get_message_state(id), 'message': msg}
Expand Down

0 comments on commit f9bc82b

Please sign in to comment.