Don't make use of hardcoded default string values

This commit is contained in:
Dan 2018-10-13 10:38:44 +02:00
parent c2da2a61ec
commit a32009a79d
2 changed files with 4 additions and 2 deletions

View File

@ -160,8 +160,8 @@ class Client(Methods, BaseClient):
first_name: str = None,
last_name: str = None,
workers: int = 4,
workdir: str = ".",
config_file: str = "./config.ini"):
workdir: str = BaseClient.WORKDIR,
config_file: str = BaseClient.CONFIG_FILE):
super().__init__()
self.session_name = session_name

View File

@ -49,6 +49,8 @@ class BaseClient:
UPDATES_WORKERS = 1
DOWNLOAD_WORKERS = 1
OFFLINE_SLEEP = 300
WORKDIR = "."
CONFIG_FILE = "./config.ini"
MEDIA_TYPE_ID = {
0: "thumbnail",