Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Clinique Veterinaire
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TD_NF17_goupe4
Clinique Veterinaire
Commits
fdfeae30
Commit
fdfeae30
authored
Jun 17, 2019
by
Evenson Jeunesse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update prog.py
parent
da9f5959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Projet/prog.py
Projet/prog.py
+7
-1
No files found.
Projet/prog.py
View file @
fdfeae30
...
...
@@ -228,10 +228,16 @@ def updateProprietaire(client_id, animal_id, new_client_id, new_animal_id) :
print
(
"An error occurs, please try again..."
)
return
False
def
updateAutorise
(
medicament
,
espece
,
new_medicament
,
new_espece
):
sql
=
"UPDATE Autorise SET medicament='{}', espece='{}' WHERE medicament='{}' AND espece='{}'"
.
format
(
new_medicament
,
new_espece
,
medicament
,
espece
)
if
Execute
(
sql
):
print
(
"Autorisation updated successfully"
)
return
True
print
(
"An error occurs, please try again..."
)
return
False
def
updateMedicament
(
nomMolecule
,
effets
)
def
updateAutorise
(
medicament_id
,
espece_id
)
def
updateTraitement
(
nom
,
debut
,
duree
,
veterinaire_id
,
animal_id
)
def
updatePrescription
(
traitement_id
,
medicament_id
,
quantite
)
def
updateAnimal
(
name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment