We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af1fee0 + 9ca21f9 commit ff5557aCopy full SHA for ff5557a
dsew_community_profile/delphi_dsew_community_profile/pull.py
@@ -277,9 +277,13 @@ def _parse_sheet(self, sheet):
277
278
def as_cached_filename(params, config):
279
"""Formulate a filename to uniquely identify this report in the input cache."""
280
+ # eg "Community Profile Report 20220128.xlsx"
281
+ # but delimiters vary; don't get tripped up if they do something wacky like
282
+ # Community.Profile.Report.20220128.xlsx
283
+ name, _, ext = config['filename'].rpartition(".")
284
return os.path.join(
285
params['indicator']['input_cache'],
- f"{config['assetId']}--{config['filename']}"
286
+ f"{name}--{config['assetId']}.{ext}"
287
)
288
289
def fetch_listing(params):
0 commit comments