from paramiko import SSHClient # type: ignore
from scp import SCPClient # type: ignore
from ytplom.misc import (
- PATH_DB, PATH_DOWNLOADS,
+ PATH_DB, PATH_DOWNLOADS, PATH_TEMP,
DatabaseConnection, PathStr, QueryId, QuotaLog, VideoFile,
YoutubeQuery, YoutubeVideo)
RelationData: TypeAlias = tuple[str, list[YoutubeVideo], DatabaseConnection]
-PATH_DB_REMOTE = PathStr('remote_db.sql')
+PATH_DB_REMOTE = PathStr(path_join(PATH_TEMP, 'remote_db.sql'))
URL_MISSING_JSON = f'http://{YTPLOM_REMOTE}:{YTPLOM_PORT}/missing.json'