Compare commits
No commits in common. "d8029623c14cb837b59781cb358b2da9eb804ce2" and "7a07d040745d472bcf48899f3a900c620ef41400" have entirely different histories.
d8029623c1
...
7a07d04074
|
@ -6,5 +6,4 @@ RUN apt-get install --yes python3 python3-pip
|
|||
COPY requirements.txt /app/
|
||||
RUN pip3 install -r requirements.txt
|
||||
COPY mirrortea/* /app/mirrortea/
|
||||
COPY config.yaml /app/
|
||||
ENTRYPOINT ["/usr/bin/python3", "/app/mirrortea"]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import asyncio
|
||||
|
||||
from matrix import MatrixLoop
|
||||
from abstract_source_platform.telegram import Telegram
|
||||
from mirrortea.abstract_source_platform.telegram import Telegram
|
||||
|
||||
from config_dataclass import Config
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
from abstract_source_platform.telegram import Telegram
|
||||
from mirrortea.abstract_source_platform.telegram import Telegram
|
||||
|
||||
platforms = [Telegram]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
from models.user import User
|
||||
from mirrortea.models.user import User
|
||||
|
||||
|
||||
class AbstractSourcePlatform(ABC):
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import sys
|
||||
import aiogram as telegram
|
||||
|
||||
from abstract_source_platform.abstact_source_platform import (
|
||||
from mirrortea.abstract_source_platform.abstact_source_platform import (
|
||||
AbstractSourcePlatform,
|
||||
)
|
||||
from models.user import User
|
||||
from mirrortea.models.user import User
|
||||
|
||||
|
||||
class Telegram(AbstractSourcePlatform):
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from repository.sqlite_repository import (
|
||||
from mirrortea.repository.sqlite_repository import (
|
||||
SQLiteDatabaseRepository,
|
||||
)
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ import sqlite3
|
|||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from repository.abstract_db_repository import AbstractDatabaseRepository
|
||||
from mirrortea.repository.abstract_db_repository import AbstractDatabaseRepository
|
||||
|
||||
from repository.sqlite_init_tables import (
|
||||
from mirrortea.repository.sqlite_init_tables import (
|
||||
TELEGRAM_USER_MATRIX_CHATS_SQL,
|
||||
TELEGRAM_USERS_SQL,
|
||||
MATRIX_ROOMS_SQL,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
aiogram==2.24
|
||||
matrix-nio==0.20.1
|
||||
jinja2==3.1.2
|
||||
pydantic==1.10.2
|
||||
pyyaml==6.0
|
||||
jinja2
|
Reference in a new issue