Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,33 @@ services:
# - web

#-------- uncomment to create first superuser --------
# create_superuser:
# build:
# context: .
# dockerfile: Dockerfile
# env_file:
# - ./src/.env
# depends_on:
# - db
# - web
# command: python -m src.scripts.create_first_superuser
# volumes:
# - ./src:/code/src
create_superuser:
build:
context: .
dockerfile: Dockerfile
env_file:
- ./src/.env
depends_on:
- db
- web
command: python -m src.scripts.create_first_superuser
volumes:
- ./src:/code/src

#-------- uncomment to run tests --------
# pytest:
# build:
# context: .
# dockerfile: Dockerfile
# env_file:
# - ./src/.env
# depends_on:
# - db
# - create_superuser
# - redis
# command: python -m pytest ./tests
# volumes:
# - .:/code
pytest:
build:
context: .
dockerfile: Dockerfile
env_file:
- ./src/.env
depends_on:
- db
- create_superuser
- redis
command: python -m pytest ./tests
volumes:
- .:/code

#-------- uncomment to create first tier --------
# create_tier:
Expand Down
2 changes: 1 addition & 1 deletion src/app/schemas/rate_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class RateLimitUpdate(BaseModel):
period: int | None = None
name: str | None = None

@validator('path', pre=True, allow_reuse=True)
@validator('path', pre=True)
def validate_and_sanitize_path(cls, value: str) -> str:
return sanitize_path(value)

Expand Down