Skip to content

Commit

Permalink
Comment addition
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 14, 2023
1 parent bf216e1 commit 9a84dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions API/api_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def process_raw_data(self, params):
if use_s3_to_upload:
file_transfer_obj = S3FileTransfer()
upload_name = exportname if params.uuid else f"Recurring/{exportname}"
if exportname.startswith("hotosm_project"):
if exportname.startswith("hotosm_project"): # TM
if not params.uuid:
pattern = r"(hotosm_project_)(\d+)"
match = re.match(pattern, exportname)
Expand All @@ -93,7 +93,7 @@ def process_raw_data(self, params):
project_number = match.group(2)
if project_number:
upload_name = f"TM/{project_number}/{exportname}"
elif exportname.startswith("hotosm_"):
elif exportname.startswith("hotosm_"): # HDX
if not params.uuid:
pattern = r"hotosm_([A-Z]{3})_(\w+)"
match = re.match(pattern, exportname)
Expand Down

0 comments on commit 9a84dbe

Please sign in to comment.