Compare commits

..

2 commits

Author SHA1 Message Date
def d8029623c1 fix: add config to docker 2023-01-10 16:45:24 +04:00
def d2b11ecc11 fix: imports, requirements 2023-01-10 16:33:52 +04:00
8 changed files with 12 additions and 9 deletions

View file

@ -6,4 +6,5 @@ RUN apt-get install --yes python3 python3-pip
COPY requirements.txt /app/ COPY requirements.txt /app/
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
COPY mirrortea/* /app/mirrortea/ COPY mirrortea/* /app/mirrortea/
COPY config.yaml /app/
ENTRYPOINT ["/usr/bin/python3", "/app/mirrortea"] ENTRYPOINT ["/usr/bin/python3", "/app/mirrortea"]

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