Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Database Management System Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bouchaira Neirouz
Database Management System Project
Commits
ec28fd6d
Commit
ec28fd6d
authored
7 months ago
by
Bouchaira Neirouz
Browse files
Options
Downloads
Patches
Plain Diff
Merge branch 'main' of
https://gitlab.ec-lyon.fr/jcaty/sgbd-usine
parent
e6c31868
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
code_interface/streamlit_app.py
+3
-5
3 additions, 5 deletions
code_interface/streamlit_app.py
with
3 additions
and
5 deletions
code_interface/streamlit_app.py
+
3
−
5
View file @
ec28fd6d
...
...
@@ -27,11 +27,9 @@ with tab1:
with
tab2
:
st
.
title
(
"
Création de compte employé
"
)
# Connect to the database
with
sqlite3
.
connect
(
r
'
donnees\company.db
'
)
as
conn
:
# Use raw string
print
(
"
Page de création de compte employé
"
)
conn
=
sqlite3
.
connect
(
r
'
C:\Users\neiro\Documents\+\GitHub\sgbd-usine\donnees\company.db
'
)
cursor
=
conn
.
cursor
()
# Get the maximum employee number from the database
cursor
.
execute
(
"
SELECT MAX(NUMERO_EMPLOYE) FROM EMPLOYE
"
)
max_numero_employe
=
cursor
.
fetchone
()[
0
]
...
...
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