ddapi 0.8.0__tar.gz → 0.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ddapi
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: DDnet api
5
5
  Home-page: https://github.com/ByFox213/ddapi
6
6
  Author: ByFox
@@ -2,6 +2,6 @@
2
2
  from .main import DDnetApi, DDstats, Status
3
3
  from .scheme import *
4
4
 
5
- __version__ = "0.8.0"
5
+ __version__ = "0.8.1"
6
6
  __author__ = 'ByFox'
7
7
  __LICENSE__ = "MIT"
@@ -28,9 +28,7 @@ class API(ABC):
28
28
 
29
29
  try:
30
30
  async with self.__session.get(url) as req:
31
- if req.status == 200:
32
- return await req.json(loads=self.json_loads)
33
- return
31
+ return await req.json(loads=self.json_loads) if req.status == 200 else None
34
32
  except ClientConnectorError:
35
33
  return
36
34
 
@@ -39,9 +39,9 @@ class PointG(BaseModel):
39
39
  class Profile(BaseModel):
40
40
  name: str
41
41
  points: int
42
- clan: str
43
- country: int
44
- skin_name: str
42
+ clan: Optional[str]
43
+ country: Optional[int]
44
+ skin_name: Optional[str]
45
45
  skin_color_body: Optional[int] = None
46
46
  skin_color_feet: Optional[int] = None
47
47
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ddapi
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: DDnet api
5
5
  Home-page: https://github.com/ByFox213/ddapi
6
6
  Author: ByFox
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ddapi
3
- version = 0.8.0
3
+ version = 0.8.1
4
4
  author = ByFox
5
5
  description = DDnet api
6
6
  long_description = file: README.md
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="ddapi",
8
- version="0.8.0",
8
+ version="0.8.1",
9
9
  author="ByFox",
10
10
  description="DDnet api",
11
11
  long_description=long_description,
File without changes
File without changes
File without changes
File without changes