Skip to content

Commit

Permalink
add comment to avoid this issue from happening again
Browse files Browse the repository at this point in the history
  • Loading branch information
priesgo committed Jan 5, 2023
1 parent 3f553b2 commit e77b9f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions covigator/database/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ def get_variant_counts_by_month(self, variant_id, source: str) -> pd.DataFrame:

def get_sample_counts_by_month(self, source: str) -> pd.DataFrame:
klass = self.get_sample_klass(source=source)
# NOTE: this query was originally implemented with SQLAlchemy syntax, but the func.date_trunc function
# provides different results. Do not change back!
query = """
select date_trunc('month', collection_date::timestamp) as month,
count(*) as sample_count
Expand Down

0 comments on commit e77b9f9

Please sign in to comment.