Fix nitpicks in code
This commit is contained in:
@@ -144,7 +144,7 @@ class SWPWebspeiseplanAPI:
|
|||||||
def parse_meal_category(
|
def parse_meal_category(
|
||||||
self, proxy_token: str, location: int
|
self, proxy_token: str, location: int
|
||||||
) -> list[dict]:
|
) -> list[dict]:
|
||||||
"""Get the meal catrgories for a specific location."""
|
"""Get the meal categories for a specific location."""
|
||||||
params = {
|
params = {
|
||||||
"token": proxy_token,
|
"token": proxy_token,
|
||||||
"model": "mealCategory",
|
"model": "mealCategory",
|
||||||
@@ -152,11 +152,11 @@ class SWPWebspeiseplanAPI:
|
|||||||
"languagetype": 1,
|
"languagetype": 1,
|
||||||
"_": int(time.time() * 1000),
|
"_": int(time.time() * 1000),
|
||||||
}
|
}
|
||||||
menu = self.parse_model(params)
|
categories = self.parse_model(params)
|
||||||
return menu
|
return categories
|
||||||
|
|
||||||
def parse_location(self, proxy_token: str) -> list[dict]:
|
def parse_location(self, proxy_token: str) -> list[dict]:
|
||||||
"""Get the meal catrgories for a specific location."""
|
"""Get the locations from the server."""
|
||||||
params = {
|
params = {
|
||||||
"token": proxy_token,
|
"token": proxy_token,
|
||||||
"model": "location",
|
"model": "location",
|
||||||
@@ -164,5 +164,5 @@ class SWPWebspeiseplanAPI:
|
|||||||
"languagetype": 1,
|
"languagetype": 1,
|
||||||
"_": int(time.time() * 1000),
|
"_": int(time.time() * 1000),
|
||||||
}
|
}
|
||||||
menu = self.parse_model(params)
|
locations = self.parse_model(params)
|
||||||
return menu
|
return locations
|
||||||
|
|||||||
Reference in New Issue
Block a user