Skip to content

Commit

Permalink
fix bug: date to datetime
Browse files Browse the repository at this point in the history
Signed-off-by: min.tian <[email protected]>
  • Loading branch information
alwayslove2013 committed Oct 23, 2024
1 parent 0e04878 commit 690ea2a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 690ea2a

Please sign in to comment.