From ed2f088732268cabc30f3f84cb82825e47e7a828 Mon Sep 17 00:00:00 2001 From: Nathan Moore Date: Fri, 19 Apr 2024 12:33:55 -0400 Subject: [PATCH] fix (export): Removing drive id from interaction model and adding time metadata (#204) * Removing drive id from interaction model * Adding time data to the interaction-files * Adding all the metadata * Add ALL the metadata --- gdrive/drive_client.py | 1 + gdrive/export_api.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gdrive/drive_client.py b/gdrive/drive_client.py index dd687c1..c5e59c8 100644 --- a/gdrive/drive_client.py +++ b/gdrive/drive_client.py @@ -208,6 +208,7 @@ def get_files_in_folder(id: str) -> List: q=f"'{id}' in parents and trashed=false", supportsAllDrives=True, includeItemsFromAllDrives=True, + fields="nextPageToken, files(*)", pageToken=page_token, ) .execute() diff --git a/gdrive/export_api.py b/gdrive/export_api.py index b67472a..68b84c1 100644 --- a/gdrive/export_api.py +++ b/gdrive/export_api.py @@ -173,7 +173,6 @@ async def find(find: FindModel): # ------------------------------- Archive API -------------------------------------- class InteractionModel(BaseModel): interactionId: str - driveId: str @router.post("/export/interaction-files")