Skip to content

Commit

Permalink
attempt 2: Tries to fix pipeline and fixes function return
Browse files Browse the repository at this point in the history
  • Loading branch information
vmesel committed Oct 30, 2024
1 parent c582191 commit cbb7812
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist

pypi-publish:
Expand All @@ -32,9 +33,11 @@ jobs:
id-token: write
steps:
- uses: actions/[email protected]
- name: Creates artifact directory
run: mkdir artifact
with:
name: dist
path: dist

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages_dir: artifact/
packages_dir: dist/
4 changes: 2 additions & 2 deletions dialog_lib/db/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_messages(self):
get_messages_query = self._get_messages_query(self._table_name)
for query in get_messages_query:
self.cursor.execute(query)
return self.cursor.fetchall()
return [row[0] for row in self.cursor.fetchall()]

async def aget_messages(self):
"""
Expand All @@ -118,7 +118,7 @@ async def aget_messages(self):
async with async_conn.cursor() as cursor:
for query in get_messages_query:
await cursor.execute(query)
return await cursor.fetchall()
return [row[0] for row in await cursor.fetchall()]

def add_tags(self, tags: str) -> None:
"""
Expand Down

0 comments on commit cbb7812

Please sign in to comment.