Skip to content

Commit

Permalink
linting (#18)
Browse files Browse the repository at this point in the history
* linting

* black
  • Loading branch information
dogversioning authored Jul 10, 2023
1 parent 9a8f38f commit 7a540d8
Show file tree
Hide file tree
Showing 2 changed files with 250 additions and 140 deletions.
8 changes: 4 additions & 4 deletions cumulus_library_covid/covid_symptom/count.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def write_view_sql(view_list_sql: List[str], filename="count.sql") -> None:
"""
sql_optimizer = concat_view_sql(view_list_sql)
sql_optimizer = sql_optimizer.replace("ORDER BY cnt desc", "")
sql_optimizer = sql_optimizer.replace("CREATE or replace VIEW", 'CREATE TABLE')
with open(filename, 'w') as fout:
sql_optimizer = sql_optimizer.replace("CREATE or replace VIEW", "CREATE TABLE")
with open(filename, "w") as fout:
fout.write(sql_optimizer)


Expand All @@ -134,7 +134,7 @@ def write_view_sql(view_list_sql: List[str], filename="count.sql") -> None:
count_pcr("week"),
count_study_period("month"),
count_study_period("week"),
count_prevalence_ed('month'),
count_prevalence_ed('week'),
count_prevalence_ed("month"),
count_prevalence_ed("week"),
]
)
Loading

0 comments on commit 7a540d8

Please sign in to comment.