mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 01:31:51 +01:00
Fixed int test (#3148)
This commit is contained in:
parent
b7de74fdf8
commit
618bc02d54
@ -395,13 +395,19 @@ class CCPairManager:
|
||||
response.raise_for_status()
|
||||
doc_sync_statuses: list[DocumentSyncStatus] = []
|
||||
for doc_sync_status in response.json():
|
||||
last_synced = doc_sync_status.get("last_synced")
|
||||
if last_synced:
|
||||
last_synced = datetime.fromisoformat(last_synced)
|
||||
|
||||
last_modified = doc_sync_status.get("last_modified")
|
||||
if last_modified:
|
||||
last_modified = datetime.fromisoformat(last_modified)
|
||||
|
||||
doc_sync_statuses.append(
|
||||
DocumentSyncStatus(
|
||||
doc_id=doc_sync_status["doc_id"],
|
||||
last_synced=datetime.fromisoformat(doc_sync_status["last_synced"]),
|
||||
last_modified=datetime.fromisoformat(
|
||||
doc_sync_status["last_modified"]
|
||||
),
|
||||
last_synced=last_synced,
|
||||
last_modified=last_modified,
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user