refactoring-by-def #1

Merged
def merged 10 commits from refactoring-by-def into master 2023-01-10 13:21:03 +00:00
7 changed files with 11 additions and 9 deletions
Showing only changes of commit d2b11ecc11 - Show all commits

View file

@ -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

View file

@ -1,3 +1,3 @@
from mirrortea.abstract_source_platform.telegram import Telegram from abstract_source_platform.telegram import Telegram
platforms = [Telegram] platforms = [Telegram]

View file

@ -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):

View file

@ -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):

View file

@ -1,4 +1,4 @@
from mirrortea.repository.sqlite_repository import ( from repository.sqlite_repository import (
SQLiteDatabaseRepository, SQLiteDatabaseRepository,
) )

View file

@ -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,

View file

@ -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