From e277a83c5f61cfc67eecda9745f88e565960518c Mon Sep 17 00:00:00 2001 From: Joel Klimont Date: Wed, 16 Feb 2022 13:16:04 +0100 Subject: [PATCH] updated docs --- compLib/Api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compLib/Api.py b/compLib/Api.py index f36e79a..4c8cb99 100644 --- a/compLib/Api.py +++ b/compLib/Api.py @@ -84,9 +84,9 @@ class Seeding: @staticmethod def get_cargo(color: str) -> Tuple[Dict, int]: - """Makes the /api/listCargo call to the api. + """Makes the /api/getCargo call to the api. - :param color: Color parameter which specifies which cargo should be taken. (A string which is either "green", "red", "yellow" or "blue" + :param color: Color parameter which specifies which cargo should be taken. (A string which is either "green", "red", "yellow" or "blue") The function only picks up one package. :return: Json Object and status code as returned by the api. :rtype: Tuple[Dict, int] """ @@ -102,6 +102,7 @@ class Seeding: Logging.get_logger().debug(f"Seeding.get_robot_state {result}, status code = {res.status_code}") return result, res.status_code + class Position: """Datastructure for holding a position """