Skip to content

Commit

Permalink
replace -> lstrip
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Oct 9, 2023
1 parent 0189d44 commit 62a3c9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dags/elsevier/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self) -> None:

def get_all_raw_filenames(self):
return [
f.key.replace("raw/", "")
f.key.lstrip("raw/")
for f in self.s3.objects.filter(Prefix=self.ZIPED_DIR).all()
]

Expand Down
2 changes: 1 addition & 1 deletion dags/iop/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self) -> None:

def get_all_raw_filenames(self):
return [
f.key.replace("raw/", "")
f.key.lstrip("raw/")
for f in self.s3.objects.filter(Prefix=self.ZIPED_DIR).all()
]

Expand Down
2 changes: 1 addition & 1 deletion dags/springer/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self) -> None:

def get_all_raw_filenames(self):
return [
f.key.replace("raw/", "")
f.key.lstrip("raw/")
for f in self.s3.objects.filter(Prefix=self.ZIPED_DIR).all()
]

Expand Down

0 comments on commit 62a3c9f

Please sign in to comment.