Skip to content

Commit

Permalink
Merge pull request #520 from Bot-detector/develop
Browse files Browse the repository at this point in the history
consistent equipment
  • Loading branch information
extreme4all authored Apr 18, 2024
2 parents acf5de4 + 84b0620 commit e106f02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
18 changes: 9 additions & 9 deletions src/api/v1/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ async def parse_detection(data: dict) -> dict:


class equipment(BaseModel):
equip_head_id: int = Field(None, ge=0)
equip_amulet_id: int = Field(None, ge=0)
equip_torso_id: int = Field(None, ge=0)
equip_legs_id: int = Field(None, ge=0)
equip_boots_id: int = Field(None, ge=0)
equip_cape_id: int = Field(None, ge=0)
equip_hands_id: int = Field(None, ge=0)
equip_weapon_id: int = Field(None, ge=0)
equip_shield_id: int = Field(None, ge=0)
equip_head_id: int = Field(0, ge=0)
equip_amulet_id: int = Field(0, ge=0)
equip_torso_id: int = Field(0, ge=0)
equip_legs_id: int = Field(0, ge=0)
equip_boots_id: int = Field(0, ge=0)
equip_cape_id: int = Field(0, ge=0)
equip_hands_id: int = Field(0, ge=0)
equip_weapon_id: int = Field(0, ge=0)
equip_shield_id: int = Field(0, ge=0)


class detection(BaseModel):
Expand Down
9 changes: 5 additions & 4 deletions src/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
logging.getLogger("asyncmy").setLevel(logging.ERROR)
logging.getLogger("aiokafka").setLevel(logging.WARNING)

uvicorn_error = logging.getLogger("uvicorn.error")
uvicorn_error.disabled = True
uvicorn_access = logging.getLogger("uvicorn.access")
uvicorn_access.disabled = True
if env != "DEV":
uvicorn_error = logging.getLogger("uvicorn.error")
uvicorn_error.disabled = True
uvicorn_access = logging.getLogger("uvicorn.access")
uvicorn_access.disabled = True

# https://github.com/aio-libs/aiomysql/issues/103
# https://github.com/coleifer/peewee/issues/2229
Expand Down

0 comments on commit e106f02

Please sign in to comment.