fixed cal downloads

This commit is contained in:
Tim Bendt
2025-07-07 11:50:16 -04:00
parent c8f9a22401
commit b46415b8d9
2 changed files with 7 additions and 3 deletions

View File

@@ -182,6 +182,9 @@ async def fetch_calendar_async(headers, progress, task_id, dry_run, vdir_path, i
async def _sync_outlook_data(dry_run, vdir, icsfile, org, days_back, days_forward, continue_iteration, download_attachments):
"""Synchronize data from external sources."""
# Expand the user home directory in vdir path
vdir = os.path.expanduser(vdir)
# Save emails to Maildir
maildir_path = (
os.getenv("MAILDIR_PATH", os.path.expanduser(
@@ -265,7 +268,7 @@ async def _sync_outlook_data(dry_run, vdir, icsfile, org, days_back, days_forwar
"--days-forward",
type=int,
help="Number of days to look forward for calendar events",
default=6,
default=30,
)
@click.option(
"--continue-iteration",