Skip to content

Commit

Permalink
Add statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Jul 3, 2024
1 parent 39a9a59 commit 11cbf7c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def _write_per_taxonomy_counts(self, session):
result = session.execute(query).fetchone()
if result:
taxonomy_row = result.RSCountPerTaxonomy
self.info(f"Update counts for aggregate per taxonomy {taxonomy_id}")
else:
self.info(f"Create persistence for aggregate per taxonomy {taxonomy_id}")
taxonomy_row = RSCountPerTaxonomy(
Expand Down Expand Up @@ -314,6 +315,7 @@ def _write_per_assembly_counts(self, session):
result = session.execute(query).fetchone()
if result:
assembly_row = result.RSCountPerAssembly
self.info(f"Update counts for aggregate per assembly {assembly}")
else:
self.info(f"Create persistence for aggregate per assembly {assembly}")
assembly_row = RSCountPerAssembly(
Expand Down Expand Up @@ -353,6 +355,7 @@ def _write_per_taxonomy_and_assembly_counts(self, session):
result = session.execute(query).fetchone()
if result:
taxonomy_assembly_row = result.RSCountPerTaxonomyAssembly
self.info(f"Update counts for aggregate per taxonomy {taxonomy} and assembly {assembly}")
else:
self.info(f"Create persistence for aggregate per taxonomy {taxonomy} and assembly {assembly}")
taxonomy_assembly_row = RSCountPerTaxonomyAssembly(
Expand Down

0 comments on commit 11cbf7c

Please sign in to comment.