fix: files_metadata (#2645)

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
This commit is contained in:
Stan Girard 2024-06-09 19:01:36 +02:00 committed by GitHub
parent 7670a2d22c
commit 7467707da4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class SyncsActive(BaseModel):
last_synced: datetime
sync_interval_minutes: int
brain_id: str
syncs_user: Optional[SyncsUser]
syncs_user: Optional[SyncsUser] = None
class SyncsFiles(BaseModel):

View File

@ -266,6 +266,7 @@ class GoogleSyncUtils(BaseModel):
folders = settings.get("folders", [])
files_to_download = settings.get("files", [])
files = []
files_metadata = []
if len(folders) > 0:
files = []
for folder in folders:

View File

@ -260,6 +260,7 @@ class AzureSyncUtils(BaseModel):
folders = settings.get("folders", [])
files_to_download = settings.get("files", [])
files = []
files_metadata = []
if len(folders) > 0:
files = []
for folder in folders: