no newlines at the end of files fixed

This commit is contained in:
miloszowi 2021-10-01 10:51:17 +02:00
parent 01030671f0
commit 1644aa35a1
10 changed files with 10 additions and 12 deletions

View File

@ -4,4 +4,3 @@ WORKDIR /src
COPY ./src/requirements.txt /src
RUN pip install -r ./requirements.txt

View File

@ -109,4 +109,4 @@ Will display available groups for this chat as well with members count that opte
/silent <group_name>
```
Will display all users that opted-in but without notyfing them.
Will display all users that opted-in but without notyfing them.

View File

@ -34,4 +34,4 @@ networks:
driver: bridge
volumes:
db-data:
db-data:

View File

@ -6,4 +6,4 @@ opted_in_failed = re.escape('You already opted-in for everyone-mentions.')
opted_off = re.escape('You have opted-off for everyone-mentions.')
opted_off_failed = re.escape('You need to opt-in first before processing this command.')
mention_failed = re.escape('There are no users to mention.')
no_groups = re.escape('There are no groups for this chat.')
no_groups = re.escape('There are no groups for this chat.')

View File

@ -1,4 +1,3 @@
from typing import Optional
from urllib.parse import quote_plus
from config.credentials import (MONGODB_DATABASE, MONGODB_HOSTNAME,
@ -37,4 +36,4 @@ class Client():
)
def aggregate(self, collection, pipeline: list):
return self.database.get_collection(collection).aggregate(pipeline)
return self.database.get_collection(collection).aggregate(pipeline)

View File

@ -1,2 +1,2 @@
class InvalidArgumentException(Exception):
pass
pass

View File

@ -1,2 +1,2 @@
class NotFoundException(Exception):
pass
pass

View File

@ -17,6 +17,9 @@ class AbstractHandler:
def get_update_data(self, update: Update, context: CallbackContext) -> UpdateData:
return UpdateData.create_from_arguments(update, context)
def reply(self, update: Update, text: str) -> None:
update.effective_message.reply(text=text)
def reply_markdown(self, update: Update, message: str) -> None:
update.effective_message.reply_markdown_v2(text=message)

View File

@ -61,6 +61,3 @@ class UserRepository():
result.append(User.from_mongo_document(record))
return result

View File

@ -2,4 +2,4 @@ python-dotenv==0.19.0
python-telegram-bot==13.7
pymongo==3.12.0
names==0.3.0
prettytable==2.2.1
prettytable==2.2.1