Skip to content

Commit 2c211e5

Browse files
authored
Fix: portfolio file service (#112)
- portfolio file service의 get_all_applicant_user_ids함수에서 s3 파일명에 맨 앞에 숫자만 담긴 것만 포함되도록 수정했습니다.
1 parent 3b5e850 commit 2c211e5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

wacruit/src/apps/portfolio/file/services.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,10 @@ def get_all_applicant_user_ids(self) -> list[int]:
122122
s3_bucket=self._s3_config.bucket_name,
123123
s3_prefix="",
124124
)
125-
return list(set(int(obj.split("/")[0]) for obj in objects))
125+
return list(
126+
set(
127+
int(obj.split("/")[0])
128+
for obj in objects
129+
if "/" in obj and obj.split("/")[0].isdigit()
130+
)
131+
)

0 commit comments

Comments
 (0)