diff --git a/docker-compose.yml b/docker-compose.yml index 6ccb38e..a3f241e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: POSTGRES_USER: ${POSTGRES_USER:-postgres} POSTGRES_DB: ${POSTGRES_DB:-postgres} ports: - - 5432 + - "127.0.0.1:${POSTGRES_PORT}:5432" healthcheck: test: ["CMD", "pg_isready"] interval: 10s diff --git a/nwxraybot/handlers/admin.py b/nwxraybot/handlers/admin.py index 6041b43..5de4838 100644 --- a/nwxraybot/handlers/admin.py +++ b/nwxraybot/handlers/admin.py @@ -19,7 +19,7 @@ class AdminHandler(Handler): @self.router.message(Command('adduser')) async def add_user(message: Message): - mask = r"^(?P[a-zA-Z0-9]+)\s(?P[^\s]+)($|\s(?P[0-9]{2}\.[0-9]{2}\.[0-9]{4})\s(?P