mirror of
https://github.com/simon987/task_tracker_drone.git
synced 2025-04-19 10:16:42 +00:00
Fixes
This commit is contained in:
parent
2e3758be6d
commit
aa15a1b29e
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
export DRONEROOT="task_tracker_drone"
|
export DRONEROOT="task_tracker_drone"
|
||||||
|
|
||||||
|
screen -S tt_drone -X quit
|
||||||
|
|
||||||
cd ${DRONEROOT}
|
cd ${DRONEROOT}
|
||||||
virtualenv env --download --clear -p python3.7
|
virtualenv env --download --clear -p python3.7
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
@ -9,7 +11,6 @@ python --version
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
screen -S tt_drone -X quit
|
|
||||||
echo "starting drone"
|
echo "starting drone"
|
||||||
screen -S tt_drone -d -m bash -c "source env/bin/activate && python src/drone.py"
|
screen -S tt_drone -d -m bash -c "source env/bin/activate && python src/drone.py"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
requests
|
requests
|
||||||
bs4
|
bs4
|
||||||
|
Pillow
|
@ -64,7 +64,7 @@ class WorkerContext:
|
|||||||
json_result["result"],
|
json_result["result"],
|
||||||
json_result[
|
json_result[
|
||||||
"verification"] if "verification" in json_result else 0).text
|
"verification"] if "verification" in json_result else 0).text
|
||||||
+ " in " + str(end_time - start_time) + "ms")
|
+ " in " + str(end_time - start_time) + "s")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(str(e) + traceback.format_exc())
|
print(str(e) + traceback.format_exc())
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user