Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adrien Simon
nf18-projet
Commits
b3246de9
Commit
b3246de9
authored
May 16, 2022
by
Adrien Simon
Browse files
fixed minor bugs
parent
979d5c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendu 4/fonction.py
View file @
b3246de9
...
...
@@ -633,7 +633,7 @@ def majReduction(conn):
abo
=
input
(
"Entrez l'adresse mail du propriétaire: "
)
facteur
=
int
(
input
(
"Entrez un nouveau facteur de réduction : "
))
cur
=
conn
.
cursor
()
sql
=
f
"UPDATE abonne SET
facteur_reduc
= '
{
facteur
}
' WHERE compte = '
{
abo
}
'"
sql
=
f
"UPDATE abonne SET
compteurFidelite
= '
{
facteur
}
' WHERE compte = '
{
abo
}
'"
cur
.
execute
(
sql
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment