small fixes in api requests for double elimination

This commit is contained in:
Joel 2021-04-23 19:42:45 +02:00
parent 7431f44804
commit 4bf031a6c7
No known key found for this signature in database
GPG key ID: BDDDBECD0808290E
4 changed files with 10 additions and 10 deletions

View file

@ -1,8 +1,8 @@
#!/usr/bin/bash
##!/usr/bin/zsh
export PYTHONDONTWRITEBYTECODE=1
# be sure to change version if needed!
fpm -s python --python-bin python3.7 --python-pip pip3.7 --python-package-name-prefix python3 \
fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefix python3 \
-m '"Joel Klimont" <joel.klimont@gmail.com>' \
--license 'proprietary' \
--description 'Library for robot used in the competition' \
@ -34,7 +34,7 @@ fpm -s python --python-bin python3.7 --python-pip pip3.7 --python-package-name-p
-d "python3-pigpio" \
-d "python3-numpy" \
-d "ffmpeg" \
-v 0.1.5-0 -t deb setup.py
-v 0.1.5-1 -t deb setup.py
# --deb-changelog changelog \
# --deb-upstream-changelog changelog \

View file

@ -89,7 +89,7 @@ class DoubleElim:
if res.status_code == 408:
Logging.get_logger().error(f"DoubleElim.get_position timeout!")
time.sleep(0.01)
return get_position()
return DoubleElim.get_position()
response = json.loads(res.content)
Logging.get_logger().debug(f"DoubleElim.get_position = {response}, status code = {res.status_code}")
@ -106,7 +106,7 @@ class DoubleElim:
if res.status_code == 408:
Logging.get_logger().error(f"DoubleElim.get_opponent timeout!")
time.sleep(0.01)
return get_opponent()
return DoubleElim.get_opponent()
response = json.loads(res.content)
Logging.get_logger().debug(f"DoubleElim.get_opponent = x:{response}, status code = {res.status_code}")
@ -123,7 +123,7 @@ class DoubleElim:
if res.status_code == 408:
Logging.get_logger().error(f"DoubleElim.get_goal timeout!")
time.sleep(0.01)
return get_goal()
return DoubleElim.get_goal()
response = json.loads(res.content)
Logging.get_logger().debug(f"DoubleElim.get_goal = {response}, status code = {res.status_code}")
@ -140,7 +140,7 @@ class DoubleElim:
if res.status_code == 408:
Logging.get_logger().error(f"DoubleElim.get_items timeout!")
time.sleep(0.01)
return get_items()
return DoubleElim.get_items()
response = json.loads(res.content)
Logging.get_logger().debug(f"DoubleElim.get_items = {response}, status code = {res.status_code}")
@ -157,7 +157,7 @@ class DoubleElim:
if res.status_code == 408:
Logging.get_logger().error(f"DoubleElim.get_scores timeout!")
time.sleep(0.01)
return get_scores()
return DoubleElim.get_scores()
response = json.loads(res.content)
Logging.get_logger().debug(f"DoubleElim.get_scores = {response}, status code = {res.status_code}")

View file

@ -1,4 +1,4 @@
__version__ = "0.1.5-0"
__version__ = "0.1.5-1"
import compLib.LogstashLogging
import logging

View file

@ -12,7 +12,7 @@ else:
setuptools.setup(
name="complib",
version="0.1.5-0",
version="0.1.5-1",
author="F-WuTs",
author_email="--",
description="",