Fix tinydb
This commit is contained in:
parent
f0da2e4530
commit
665416eaa8
2 changed files with 4 additions and 4 deletions
|
|
@ -82,8 +82,8 @@ class ParallelTinyDbDriver(TracingDatabaseDriver):
|
|||
|
||||
if sort_by:
|
||||
df.sort_values(
|
||||
[col["column_id"] for col in sort_by],
|
||||
ascending=[col["direction"] == "asc" for col in sort_by],
|
||||
[col.column_id for col in sort_by],
|
||||
ascending=[col.direction == "asc" for col in sort_by],
|
||||
inplace=True,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from abc import ABC, abstractclassmethod, abstractmethod
|
||||
from abc import ABC, abstractmethod
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import List, Optional, Sequence, Tuple, Union
|
||||
|
|
@ -18,7 +18,7 @@ class TracingDatabaseDriver(ABC):
|
|||
) -> None:
|
||||
cls.configure_credentials(**ConfigFile(secrets_path))
|
||||
|
||||
@abstractclassmethod
|
||||
@classmethod
|
||||
def configure_credentials(
|
||||
cls,
|
||||
) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue