Skip to content

Commit

Permalink
Merge pull request #41
Browse files Browse the repository at this point in the history
v3.0.3
  • Loading branch information
MatteoCampinoti94 authored Aug 20, 2024
2 parents e6df7ac + cf6110d commit fec8ce2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion acacore/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.2"
__version__ = "3.0.3"
6 changes: 3 additions & 3 deletions acacore/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ def select(
order_statements = [f"{c.name if isinstance(c, Column) else c} {s}" for c, s in order_by]
statement += f" ORDER BY {','.join(order_statements)}"

if offset is not None:
statement += f" OFFSET {offset}"

if limit is not None:
statement += f" LIMIT {limit}"

if offset is not None and offset > 0:
statement += f" OFFSET {offset}"

return Cursor(self.connection.execute(statement, parameters), columns, self)

def insert(self, entry: dict[str, Any], exist_ok: bool = False, replace: bool = False):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "acacore"
version = "3.0.2"
version = "3.0.3"
description = ""
authors = ["Matteo Campinoti <[email protected]>"]
license = "GPL-3.0"
Expand Down

0 comments on commit fec8ce2

Please sign in to comment.