fix: use upload date (not meeting date) for board document storage path
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
DocumentUploadService.get_file_path() resolves paths using uploaded_at, so import scripts must store files in directories matching that date. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a8f2178b7e
commit
a77db328f0
@ -79,8 +79,9 @@ def main():
|
|||||||
|
|
||||||
print(f"Uploader: {uploader.name} (id={uploader.id})")
|
print(f"Uploader: {uploader.name} (id={uploader.id})")
|
||||||
|
|
||||||
# Create target directory
|
# Create target directory (use current date, matching DocumentUploadService logic)
|
||||||
target_dir = os.path.join(UPLOAD_BASE, '2026', '02')
|
now = datetime.now()
|
||||||
|
target_dir = os.path.join(UPLOAD_BASE, str(now.year), f"{now.month:02d}")
|
||||||
os.makedirs(target_dir, exist_ok=True)
|
os.makedirs(target_dir, exist_ok=True)
|
||||||
print(f"Target directory: {target_dir}")
|
print(f"Target directory: {target_dir}")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user