Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ontodev/gizmos
Browse files Browse the repository at this point in the history
  • Loading branch information
beckyjackson committed Aug 12, 2021
2 parents 8393e69 + 11b1cb0 commit 899970a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gizmos/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def check_statements(conn: Connection, limit: int = 10) -> bool:

# Check that no row has both an object and a value
message_count = 0
cur.execute("SELECT * FROM statements WHERE object IS NOT NULL AND value IS NOT NULL")
invalid = len(cur.fetchall())
res = conn.execute("SELECT * FROM statements WHERE object IS NOT NULL AND value IS NOT NULL")
invalid = len(res)
if invalid:
logger.error(
f"{invalid} rows where both 'object' and 'value' have values (one must be NULL)"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
description="Gizmos for ontology development",
long_description=long_description,
long_description_content_type="text/markdown",
version="0.2.0",
version="0.3.0",
author="James A Overton",
author_email="[email protected]",
classifiers=[
Expand Down

0 comments on commit 899970a

Please sign in to comment.