Skip to content

Commit 437620e

Browse files
🐛 fix: some changes were made due to a change in api responses
1 parent ff46896 commit 437620e

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

squarecloud/app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ class Application(AbstractApplication):
148148
'_desc',
149149
'_ram',
150150
'_lang',
151-
'_type',
152151
'_cluster',
153152
'_isWebsite',
154153
'_avatar',
@@ -237,7 +236,6 @@ def __init__(
237236
'static',
238237
'dynamic',
239238
] = lang
240-
self._type: Literal['free', 'paid'] = type
241239
self._cluster: Literal[
242240
'florida-free-1',
243241
'fl-haswell-4',

squarecloud/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,4 +587,4 @@ async def app_data(self, app_id: str, **kwargs) -> AppData:
587587
await self._listener.on_request(
588588
endpoint=endpoint, response=response
589589
)
590-
return AppData(**response.response.get('app'))
590+
return AppData(**response.response)

squarecloud/data.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class AppData:
7979
:ivar avatar: The application avatar
8080
:ivar owner: The application owner ID
8181
:ivar cluster: The cluster that the app is hosted on
82-
:ivar cpu: The amount of CPU that application is using
8382
:ivar ram: The amount of RAM that application is using
8483
:ivar language The programming language of the app.:
8584
:ivar isWebsite: Whether if the app is a website
@@ -91,7 +90,6 @@ class AppData:
9190
:type cluster: Literal[
9291
'florida-ds1-1', 'florida-ds1-2', 'florida-ds1-3', 'florida-ds1-free-1'
9392
]
94-
:type cpu: int;
9593
:type ram: int;
9694
:type language: Literal[
9795
'javascript',
@@ -117,7 +115,6 @@ class AppData:
117115
cluster: Literal[
118116
'florida-ds1-1', 'florida-ds1-2', 'florida-ds1-3', 'florida-ds1-free-1'
119117
]
120-
cpu: int
121118
ram: int
122119
language: Literal[
123120
'javascript',
@@ -143,25 +140,20 @@ class UserData:
143140
User data class
144141
145142
:ivar id: User ID;
146-
:ivar tag: User name
147-
:ivar locale: User locale
143+
:ivar tag: Username
148144
:ivar plan: User plan
149145
:ivar blocklist: Whether to user is blocked
150146
:ivar email: User email
151147
152148
:type id: int
153149
:type tag: str
154-
:type locale: str
155150
:type plan: PlanData
156-
:type blocklist: bool
157151
:type email: str | None = None
158152
"""
159153

160154
id: int
161155
tag: str
162-
locale: str
163156
plan: PlanData
164-
blocklist: bool
165157
email: str | None = None
166158

167159

@@ -314,4 +306,3 @@ class StatisticsData:
314306
apps: int
315307
websites: int
316308
ping: int
317-
time: int

0 commit comments

Comments
 (0)