ruff lint fixes
This commit is contained in:
@@ -242,7 +242,7 @@ async def fetch_calendar_async(headers, progress, task_id):
|
||||
# Get the next page URL from @odata.nextLink
|
||||
calendar_url = response_data.get('@odata.nextLink')
|
||||
|
||||
output_file = f'output_ics/outlook_events_latest.ics'
|
||||
output_file = 'output_ics/outlook_events_latest.ics'
|
||||
if not dry_run:
|
||||
os.makedirs(os.path.dirname(output_file), exist_ok=True)
|
||||
progress.console.print(f"Saving events to {output_file}...")
|
||||
@@ -300,7 +300,7 @@ async def save_mime_to_maildir_async(maildir_path, email_data, attachments_dir,
|
||||
target_dir = 'cur' if email_data.get('isRead', False) else 'new'
|
||||
id = email_data.get('id', '')
|
||||
if not id:
|
||||
progress.console.print(f"Message ID not found. Skipping save.")
|
||||
progress.console.print("Message ID not found. Skipping save.")
|
||||
return
|
||||
email_filename = f"{id}.eml"
|
||||
email_filepath = os.path.join(maildir_path, target_dir, email_filename)
|
||||
|
||||
Reference in New Issue
Block a user