diff --git a/python/target_selection/sdss_id/create_catalogidx_to_catalogidy.py b/python/target_selection/sdss_id/create_catalogidx_to_catalogidy.py index 31881373..d51b74b2 100644 --- a/python/target_selection/sdss_id/create_catalogidx_to_catalogidy.py +++ b/python/target_selection/sdss_id/create_catalogidx_to_catalogidy.py @@ -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")