Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Code Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
procom2022-robotise
Code Python
Commits
7e57cb7b
Commit
7e57cb7b
authored
2 years ago
by
Adrien Chabod
Browse files
Options
Downloads
Patches
Plain Diff
print
parent
507997a7
No related branches found
No related tags found
1 merge request
!1
MAJ BDD + Data commande fonctionnel
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bibliotheques/ble/main.py
+2
-0
2 additions, 0 deletions
bibliotheques/ble/main.py
tests/test_sql_req.py
+4
-2
4 additions, 2 deletions
tests/test_sql_req.py
with
6 additions
and
2 deletions
bibliotheques/ble/main.py
+
2
−
0
View file @
7e57cb7b
...
...
@@ -180,7 +180,9 @@ class BLE_MAJ_MACHINE(RxCharacteristic):
RxCharacteristic
.
__init__
(
self
,
bus
,
index
,
service
,
SQL_MAJ_MACHINE_CHARACTERISTIC_UUID
)
def
WriteValue
(
self
,
value
,
options
):
print
(
format
(
bytearray
(
value
).
decode
()))
maj
=
unformalize_data_list
(
format
(
bytearray
(
value
).
decode
()))
print
(
maj
)
mysql_maj_machine
(
maj
)
class
BLE_MACHINE_SEND_ORDER
(
RxCharacteristic
):
...
...
This diff is collapsed.
Click to expand it.
tests/test_sql_req.py
+
4
−
2
View file @
7e57cb7b
from
bibliotheques.sql.sql
import
*
input
=
"
0,None,None/1,6,0/2,2,0/3,None,None/4,None,None/5,None,None
"
#id_bec,id_ingredient,quantite
input_maj_machine
=
"
0,None,None/1,6,0/2,2,0/3,None,None/4,None,None/5,None,None
"
#id_bec,id_ingredient,quantite
input_command_machine
=
"
0,0,10/0,1,5/0,2,6
"
print
(
mysql_get_cocktail_list
())
print
(
mysql_get_ingredient_list
())
...
...
@@ -10,4 +11,5 @@ print(mysql_get_cocktail_composition_without_bec(1))
print
(
mysql_get_cocktail_composition_with_bec
(
1
))
print
(
mysql_get_bec_from_ingredient
(
1
))
mysql_add_ingredient
(
"
test
"
)
mysql_maj_machine
(
unformalize_data_list
(
input
))
\ No newline at end of file
mysql_maj_machine
(
unformalize_data_list
(
input_maj_machine
))
mysql_get_composition_for_machine
(
unformalize_data_list
(
input_command_machine
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment