Skip to content

Commit

Permalink
Match game types
Browse files Browse the repository at this point in the history
  • Loading branch information
neobenedict committed Mar 18, 2024
1 parent 34523a7 commit 3266434
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/core/nice/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ async def parse_dataVals(
text = array2[0]
value = int(array2[1])
except ValueError as err:
raise HTTPException(
status_code=500, detail=error_message
) from err
value = array2[1]
else:
raise HTTPException(status_code=500, detail=error_message) from None

Expand Down
2 changes: 1 addition & 1 deletion app/models/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@
Column("script", JSONB),
Column("questId", Integer, index=True),
Column("phase", Integer, index=True),
Column("flag", Integer),
Column("flag", BigInteger),
)


Expand Down
4 changes: 2 additions & 2 deletions app/schemas/nice.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from decimal import Decimal
from enum import StrEnum
from typing import Any, Generic, Optional, TypeVar
from typing import Any, Generic, Optional, TypeVar, Union

from pydantic import BaseModel, Field, HttpUrl
from pydantic.generics import GenericModel
Expand Down Expand Up @@ -252,7 +252,7 @@ class BaseVals(BaseModel):
Turn: Optional[int] = None
Count: Optional[int] = None
Value: Optional[int] = None
Value2: Optional[int] = None
Value2: Optional[Union[int,str]] = None
UseRate: Optional[int] = None
Target: Optional[int] = None
Correction: Optional[int] = None
Expand Down

0 comments on commit 3266434

Please sign in to comment.