Skip to content

Commit

Permalink
Fixed int test (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer authored Nov 16, 2024
1 parent b7de74f commit 618bc02
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions backend/tests/integration/common_utils/managers/cc_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,19 @@ def get_doc_sync_statuses(
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,
)
)

Expand Down

0 comments on commit 618bc02

Please sign in to comment.