Skip to content

Commit

Permalink
Fixed type tg_id field in Client class (#22)
Browse files Browse the repository at this point in the history
* Fixed type tg_id field in Client class

* Fixed type tg_id field and default value in Client class

* Fixed type tg_id field and default value in Client class, goto modern style

* Fixed type tg_id field and default value in Client class, goto modern style

---------

Co-authored-by: Medvedev Anton <ant@n-medvedev.ru>
  • Loading branch information
anmv and Medvedev Anton authored Oct 14, 2024
1 parent d258bfa commit fe32811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py3xui/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ class Client(BaseModel):
flow: str = ""
limit_ip: int = Field(default=0, alias=ClientFields.LIMIT_IP) # type: ignore
sub_id: str = Field(default="", alias=ClientFields.SUB_ID) # type: ignore
tg_id: str = Field(default="", alias=ClientFields.TG_ID) # type: ignore
tg_id: int | str | None = Field(default="", alias=ClientFields.TG_ID) # type: ignore
total_gb: int = Field(default=0, alias=ClientFields.TOTAL_GB) # type: ignore

0 comments on commit fe32811

Please sign in to comment.