Skip to content

Commit

Permalink
update pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen15 committed Nov 19, 2024
1 parent 3841e2b commit d0d93bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions graphiti_core/edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def get_by_group_ids(
limit: int = DEFAULT_PAGE_LIMIT,
created_at: datetime = None,

Check failure on line 145 in graphiti_core/edges.py

View workflow job for this annotation

GitHub Actions / mypy

assignment

Incompatible default for argument "created_at" (default has type "None", argument has type "datetime")
):
cursor_query: LiteralString = 'AND e.uuid < $created_at' if created_at else ''
cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''

records, _, _ = await driver.execute_query(
"""
Expand Down Expand Up @@ -296,7 +296,7 @@ async def get_by_group_ids(
limit: int = DEFAULT_PAGE_LIMIT,
created_at: datetime = None,

Check failure on line 297 in graphiti_core/edges.py

View workflow job for this annotation

GitHub Actions / mypy

assignment

Incompatible default for argument "created_at" (default has type "None", argument has type "datetime")
):
cursor_query: LiteralString = 'AND e.uuid < $created_at' if created_at else ''
cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''

records, _, _ = await driver.execute_query(
"""
Expand Down Expand Up @@ -402,7 +402,7 @@ async def get_by_group_ids(
limit: int = DEFAULT_PAGE_LIMIT,
created_at: datetime = None,

Check failure on line 403 in graphiti_core/edges.py

View workflow job for this annotation

GitHub Actions / mypy

assignment

Incompatible default for argument "created_at" (default has type "None", argument has type "datetime")
):
cursor_query: LiteralString = 'AND e.uuid < $created_at' if created_at else ''
cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''

records, _, _ = await driver.execute_query(
"""
Expand Down
6 changes: 3 additions & 3 deletions graphiti_core/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async def get_by_group_ids(
limit: int = DEFAULT_PAGE_LIMIT,
created_at: datetime = None,

Check failure on line 215 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

assignment

Incompatible default for argument "created_at" (default has type "None", argument has type "datetime")

Check notice on line 215 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

Note

PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True

Check notice on line 215 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

Note

Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
):
cursor_query: LiteralString = 'AND e.uuid < $created_at' if created_at else ''
cursor_query: LiteralString = 'AND e.created_at < $created_at' if created_at else ''

records, _, _ = await driver.execute_query(
"""
Expand Down Expand Up @@ -330,7 +330,7 @@ async def get_by_group_ids(
limit: int = DEFAULT_PAGE_LIMIT,
created_at: datetime = None,

Check failure on line 331 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

assignment

Incompatible default for argument "created_at" (default has type "None", argument has type "datetime")

Check notice on line 331 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

Note

PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True

Check notice on line 331 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

Note

Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
):
cursor_query: LiteralString = 'AND e.uuid < $created_at' if created_at else ''
cursor_query: LiteralString = 'AND n.created_at < $created_at' if created_at else ''

records, _, _ = await driver.execute_query(
"""
Expand Down Expand Up @@ -444,7 +444,7 @@ async def get_by_group_ids(
limit: int = DEFAULT_PAGE_LIMIT,
created_at: datetime = None,

Check failure on line 445 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

assignment

Incompatible default for argument "created_at" (default has type "None", argument has type "datetime")

Check notice on line 445 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

Note

PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True

Check notice on line 445 in graphiti_core/nodes.py

View workflow job for this annotation

GitHub Actions / mypy

Note

Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
):
cursor_query: LiteralString = 'AND e.uuid < $created_at' if created_at else ''
cursor_query: LiteralString = 'AND n.created_at < $created_at' if created_at else ''

records, _, _ = await driver.execute_query(
"""
Expand Down

0 comments on commit d0d93bb

Please sign in to comment.