import psycopg only in class VideoDataClient

This commit is contained in:
Barbara Miller 2025-07-28 16:40:42 -07:00
parent 923ae1f2a2
commit 59f7830711

View file

@ -28,11 +28,9 @@ from dataclasses import dataclass
from typing import Any, List, Optional from typing import Any, List, Optional
import doublethink import doublethink
import psycopg
import structlog import structlog
import urlcanon import urlcanon
import yt_dlp import yt_dlp
from psycopg_pool import ConnectionPool, PoolTimeout
from yt_dlp.utils import ExtractorError, match_filter_func from yt_dlp.utils import ExtractorError, match_filter_func
import brozzler import brozzler
@ -76,6 +74,9 @@ class VideoCaptureRecord:
class VideoDataClient: class VideoDataClient:
import psycopg
from psycopg_pool import ConnectionPool, PoolTimeout
VIDEO_DATA_SOURCE = os.getenv("VIDEO_DATA_SOURCE") VIDEO_DATA_SOURCE = os.getenv("VIDEO_DATA_SOURCE")
def __init__(self): def __init__(self):