Заменил logging на logger
This commit is contained in:
10
db/db.py
10
db/db.py
@@ -252,7 +252,7 @@ class Database:
|
||||
"redmine_username": user[8]
|
||||
}
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logger.error(e)
|
||||
|
||||
|
||||
def get_tags(self) -> list[Tag]:
|
||||
@@ -266,7 +266,7 @@ class Database:
|
||||
for tag in self.cursor.execute("SELECT * FROM tag").fetchall()
|
||||
]
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logger.error(e)
|
||||
|
||||
def get_tasks(self) -> list[Task]:
|
||||
"""Получает задачи из бд"""
|
||||
@@ -284,7 +284,7 @@ class Database:
|
||||
}) for task in self.cursor.execute("SELECT * FROM task").fetchall()
|
||||
]
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logger.error(e)
|
||||
|
||||
def get_vetro_projects(self) -> list[VetroProject]:
|
||||
"""Получает Проекты Ветро из бд"""
|
||||
@@ -296,7 +296,7 @@ class Database:
|
||||
}) for vetro_project in self.cursor.execute("SELECT * FROM vetro_project").fetchall()
|
||||
]
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logger.error(e)
|
||||
|
||||
def get_activity_types(self) -> list[ActivityType]:
|
||||
"""Получает Виды деятельности из бд"""
|
||||
@@ -308,4 +308,4 @@ class Database:
|
||||
}) for activity_type in self.cursor.execute("SELECT * FROM activity_type").fetchall()
|
||||
]
|
||||
except Exception as e:
|
||||
logging.error(e)
|
||||
logger.error(e)
|
||||
|
||||
Reference in New Issue
Block a user