More linting
This commit is contained in:
@@ -33,21 +33,18 @@ class Entries(db.Entity): # type: ignore[name-defined]
|
|||||||
text = Required(LongStr)
|
text = Required(LongStr)
|
||||||
documents = Set("Documents")
|
documents = Set("Documents")
|
||||||
|
|
||||||
|
|
||||||
class Documents(db.Entity): # type: ignore[name-defined]
|
class Documents(db.Entity): # type: ignore[name-defined]
|
||||||
document_id = PrimaryKey(int, auto=True)
|
document_id = PrimaryKey(int, auto=True)
|
||||||
entry_id = Required(Entries)
|
entry_id = Required(Entries)
|
||||||
name = Required(str)
|
name = Required(str)
|
||||||
url = Required(LongStr)
|
url = Required(LongStr)
|
||||||
|
|
||||||
|
|
||||||
class History(db.Entity): # type: ignore[name-defined]
|
class History(db.Entity): # type: ignore[name-defined]
|
||||||
history_id = PrimaryKey(int, auto=True)
|
history_id = PrimaryKey(int, auto=True)
|
||||||
year = Required(str, max_len=3)
|
year = Required(str, max_len=3)
|
||||||
edocket = Required(bool)
|
edocket = Required(bool)
|
||||||
number = Required(int)
|
number = Required(int)
|
||||||
|
|
||||||
|
|
||||||
def updateDatabase(settings: QSettings) -> None:
|
def updateDatabase(settings: QSettings) -> None:
|
||||||
set_sql_debug(True)
|
set_sql_debug(True)
|
||||||
engine = settings.value("engine")
|
engine = settings.value("engine")
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
from typing import NoReturn, cast
|
from typing import NoReturn
|
||||||
|
|
||||||
from PySide6.QtCore import (
|
from PySide6.QtCore import (
|
||||||
QByteArray,
|
QByteArray,
|
||||||
QCoreApplication,
|
QCoreApplication,
|
||||||
QObject,
|
|
||||||
QRect,
|
QRect,
|
||||||
QSettings,
|
QSettings,
|
||||||
Signal,
|
|
||||||
)
|
)
|
||||||
from PySide6.QtGui import QColor, QFont
|
from PySide6.QtGui import QColor, QFont
|
||||||
from PySide6.QtSql import QSqlQuery
|
from PySide6.QtSql import QSqlQuery
|
||||||
|
|||||||
Reference in New Issue
Block a user