Skip to content

Commit 064a4fd

Browse files
committed
adjust PATTERN_DAILY PATTERN_WEEKLY string construction to avoid doubel braces
1 parent de02052 commit 064a4fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/acquisition/covidcast/csv_importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class CsvImporter:
5959
geo_types_pattern = "|".join(sorted(GEOGRAPHIC_RESOLUTIONS, key=len, reverse=True))
6060

6161
# .../source/yyyymmdd_geo_signal.csv
62-
PATTERN_DAILY = re.compile(rf'^.*/([^/]*)/(\d{{8}})_({geo_types_pattern})_(.+)\.csv$')
62+
PATTERN_DAILY = re.compile(r'^.*/([^/]*)/(\d{8})_(' + geo_types_pattern + r')_(.+)\.csv$')
6363

6464
# .../source/weekly_yyyyww_geo_signal.csv
65-
PATTERN_WEEKLY = re.compile(rf'^.*/([^/]*)/weekly_(\d{{6}})_({geo_types_pattern})_(.+)\.csv$')
65+
PATTERN_WEEKLY = re.compile(r'^.*/([^/]*)/weekly_(\d{6})_(' + geo_types_pattern + r')_(.+)\.csv$')
6666

6767
# .../issue_yyyymmdd
6868
PATTERN_ISSUE_DIR = re.compile(r'^.*/([^/]*)/issue_(\d{8})$')

0 commit comments

Comments
 (0)