Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,13 @@ def apirequests():
|
|
| 30 |
#then we can get the id from the database
|
| 31 |
servolist = get_servo_list(id)
|
| 32 |
one, two, three = servolist.split(',')
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
if __name__ == '__main__':
|
| 35 |
app.run(host='0.0.0.0', port=5000, debug=False)
|
|
|
|
| 30 |
#then we can get the id from the database
|
| 31 |
servolist = get_servo_list(id)
|
| 32 |
one, two, three = servolist.split(',')
|
| 33 |
+
#split it up ^
|
| 34 |
+
if servo = 1
|
| 35 |
+
return one
|
| 36 |
+
if servo = 2
|
| 37 |
+
return two
|
| 38 |
+
if servo = 3
|
| 39 |
+
return three
|
| 40 |
+
# ^ identify the servo
|
| 41 |
if __name__ == '__main__':
|
| 42 |
app.run(host='0.0.0.0', port=5000, debug=False)
|