Skip to content

Commit

Permalink
Update file name config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedea committed Oct 19, 2021
1 parent b0d26c0 commit 4dd998c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notion_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def backup() -> List[str]:
taskId = NotionUp.requestPost('enqueueTask', NotionUp.exportTask(spaceId)).get('taskId')
# get exported file url and download
url = NotionUp.waitForExportedUrl(taskId)
filename = slugify(f'{spaceName}-{spaceId}.zip')
filename = slugify(f'{spaceName}-{spaceId}') + '.zip'
print('download exported zip: {}, {}'.format(url, filename))
filePath = NotionUp.downloadFile(url, filename)
zips.append(filePath)
Expand Down

0 comments on commit 4dd998c

Please sign in to comment.