Skip to content

Commit

Permalink
Fix rowcount
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 13, 2024
1 parent c94ae71 commit c4e941a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ def create_unique_from_region(input_tablename, save_log_output=False):
]

insert_query = UniqueMatch.insert_from(query, fields).returning()
n_unique = insert_query.execute()
cursor = insert_query.execute()
n_unique = cursor.rowcount
tf = time.time()
log.info(f"Created unique pairs table with {n_unique} " f"entries in {(tf - ti):.2f} seconds")

Expand Down

0 comments on commit c4e941a

Please sign in to comment.