refactoring-by-def #1
|
@ -1,7 +1,7 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from matrix import MatrixLoop
|
from matrix import MatrixLoop
|
||||||
from mirrortea.abstract_source_platform.telegram import Telegram
|
from abstract_source_platform.telegram import Telegram
|
||||||
|
|
||||||
from config_dataclass import Config
|
from config_dataclass import Config
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
from mirrortea.abstract_source_platform.telegram import Telegram
|
from abstract_source_platform.telegram import Telegram
|
||||||
|
|
||||||
platforms = [Telegram]
|
platforms = [Telegram]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
from mirrortea.models.user import User
|
from models.user import User
|
||||||
|
|
||||||
|
|
||||||
class AbstractSourcePlatform(ABC):
|
class AbstractSourcePlatform(ABC):
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import sys
|
import sys
|
||||||
import aiogram as telegram
|
import aiogram as telegram
|
||||||
|
|
||||||
from mirrortea.abstract_source_platform.abstact_source_platform import (
|
from abstract_source_platform.abstact_source_platform import (
|
||||||
AbstractSourcePlatform,
|
AbstractSourcePlatform,
|
||||||
)
|
)
|
||||||
from mirrortea.models.user import User
|
from models.user import User
|
||||||
|
|
||||||
|
|
||||||
class Telegram(AbstractSourcePlatform):
|
class Telegram(AbstractSourcePlatform):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from mirrortea.repository.sqlite_repository import (
|
from repository.sqlite_repository import (
|
||||||
SQLiteDatabaseRepository,
|
SQLiteDatabaseRepository,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@ import sqlite3
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from mirrortea.repository.abstract_db_repository import AbstractDatabaseRepository
|
from repository.abstract_db_repository import AbstractDatabaseRepository
|
||||||
|
|
||||||
from mirrortea.repository.sqlite_init_tables import (
|
from repository.sqlite_init_tables import (
|
||||||
TELEGRAM_USER_MATRIX_CHATS_SQL,
|
TELEGRAM_USER_MATRIX_CHATS_SQL,
|
||||||
TELEGRAM_USERS_SQL,
|
TELEGRAM_USERS_SQL,
|
||||||
MATRIX_ROOMS_SQL,
|
MATRIX_ROOMS_SQL,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
aiogram==2.24
|
aiogram==2.24
|
||||||
matrix-nio==0.20.1
|
matrix-nio==0.20.1
|
||||||
jinja2
|
jinja2==3.1.2
|
||||||
|
pydantic==1.10.2
|
||||||
|
pyyaml==6.0
|
Reference in a new issue