Skip to content

Commit

Permalink
Update src/acquisition/covidcast/database.py
Browse files Browse the repository at this point in the history
Co-authored-by: george <[email protected]>
  • Loading branch information
nolangormley and melange396 authored Feb 1, 2025
1 parent f0e60f0 commit d9f9260
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/acquisition/covidcast/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,14 @@ def compute_coverage_crossref(self):
'''

self._connection.start_transaction()

self._cursor.execute(coverage_crossref_delete_sql)
logger.info(f"coverage_crossref_delete_sql:{self._cursor.rowcount}")
logger.info("coverage_crossref_delete", rows=self._cursor.rowcount)

self._cursor.execute(coverage_crossref_update_sql)
logger.info(f"coverage_crossref_update_sql:{self._cursor.rowcount}")
logger.info("coverage_crossref_update", rows=self._cursor.rowcount)

self.commit()
logger.info("coverage_crossref committed")

return self._cursor.rowcount

0 comments on commit d9f9260

Please sign in to comment.