Skip to content

Commit

Permalink
fix broken sqlachemy clause
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsachs committed Dec 1, 2023
1 parent 17b8e9a commit 9a3a91d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fides/api/util/tcf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
def exclude_gvl_systems(query: Select) -> Select:
"""Utility function to add a query clause that excludes GVL systems"""
return query.where(

Check warning on line 19 in src/fides/api/util/tcf/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/fides/api/util/tcf/__init__.py#L19

Added line #L19 was not covered by tests
or_(System.vendor_id is None, not_(System.vendor_id.startswith(GVL_PREFIX)))
or_(System.vendor_id.is_(None), not_(System.vendor_id.startswith(GVL_PREFIX)))
)


def exclude_ac_systems(query: Select) -> Select:
"""Utility function to add a query clause that excludes AC systems"""
return query.where(

Check warning on line 26 in src/fides/api/util/tcf/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/fides/api/util/tcf/__init__.py#L26

Added line #L26 was not covered by tests
or_(System.vendor_id is None, not_(System.vendor_id.startswith(AC_PREFIX)))
or_(System.vendor_id.is_(None), not_(System.vendor_id.startswith(AC_PREFIX)))
)


Expand Down

0 comments on commit 9a3a91d

Please sign in to comment.