Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Nov 10, 2024
1 parent 1c9b8aa commit 56c9b76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prediction_market_agent_tooling/tools/caches/db_cache.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import hashlib
import inspect
import json
import logging
from datetime import date, timedelta
from functools import wraps
from typing import (
Expand All @@ -21,6 +20,7 @@
from sqlmodel import Field, Session, SQLModel, create_engine, desc, select

from prediction_market_agent_tooling.config import APIKeys
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.tools.datetime_utc import DatetimeUTC
from prediction_market_agent_tooling.tools.pickle_utils import InitialiseNonPickable
from prediction_market_agent_tooling.tools.utils import utcnow
Expand Down Expand Up @@ -90,7 +90,6 @@ def decorator(func: FunctionT) -> FunctionT:

return decorator

logger = logging # For some reason, `loguru` doesn't work in multiprocessing if it's used in in-function-defined functions, so force-patch for just standard logging here.
api_keys = api_keys if api_keys is not None else APIKeys()
wrapped_engine = InitialiseNonPickable(
lambda: create_engine(
Expand Down

0 comments on commit 56c9b76

Please sign in to comment.