Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug: date to datetime #380

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vectordb_bench/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import pathlib
from datetime import date
from datetime import date, datetime
from enum import Enum, StrEnum, auto
from typing import List, Self

Expand Down Expand Up @@ -167,7 +167,7 @@ class TestResult(BaseModel):

def flush(self):
db2case = self.get_db_results()
timestamp = date.today().timestamp()
timestamp = datetime.combine(date.today(), datetime.min.time()).timestamp()
result_root = config.RESULTS_LOCAL_DIR
for db, result in db2case.items():
self.write_db_file(
Expand Down