From 4ab3c61e7c639e55f18ad1b4638fbb3b1c656b1d Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Tue, 30 Jul 2024 23:19:11 -0700 Subject: [PATCH] Auto-update: Tue Jul 30 23:19:11 PDT 2024 --- sijapi/classes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sijapi/classes.py b/sijapi/classes.py index 6533ff6..e78d5c2 100644 --- a/sijapi/classes.py +++ b/sijapi/classes.py @@ -14,7 +14,7 @@ import traceback from tqdm.asyncio import tqdm import reverse_geocoder as rg from pathlib import Path -from typing import Any, Dict, List, Optional, Tuple, Union, TypeVar +from typing import Any, Dict, List, Optional, Tuple, Union, TypeVar, ClassVar from dotenv import load_dotenv from pydantic import BaseModel, Field, create_model from concurrent.futures import ThreadPoolExecutor @@ -181,9 +181,9 @@ class APIConfig(BaseModel): TZ: str KEYS: List[str] GARBAGE: Dict[str, Any] - _db_pools: Dict[str, asyncpg.Pool] = {} + _db_pools: Dict[str, Any] = Field(default_factory=dict) - SPECIAL_TABLES = ['spatial_ref_sys'] # Tables that can't have server_id and version columns + SPECIAL_TABLES: ClassVar[List[str]] = ['spatial_ref_sys'] @classmethod def load(cls, config_path: Union[str, Path], secrets_path: Union[str, Path]):