Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Script recalcul calque
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ERASME
Script recalcul calque
Commits
cdfb7973
Commit
cdfb7973
authored
2 years ago
by
Pierre-Gilles LEVALLOIS
Browse files
Options
Downloads
Patches
Plain Diff
debug getProgress
parent
50de0b87
No related branches found
No related tags found
1 merge request
!6
Fully functional version that calculate layer with all stages
Pipeline
#60310
canceled
2 years ago
Stage: Build Calqul
Stage: Deploy Calqul Buttons
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfiles/python/scripts/utils.py
+4
-1
4 additions, 1 deletion
Dockerfiles/python/scripts/utils.py
with
4 additions
and
1 deletion
Dockerfiles/python/scripts/utils.py
+
4
−
1
View file @
cdfb7973
...
...
@@ -855,7 +855,10 @@ def getProgress(DBcursor, DBSchema, codeInsee, id_factor=None):
qry
=
'
SELECT count(1) FROM
'
+
DBSchema
+
'
.
'
+
stage
+
'
_progress WHERE insee =
'
+
codeInsee
+
qryFilter
debugLog
(
style
.
YELLOW
,
qry
,
logging
.
INFO
)
DBcursor
.
execute
(
qry
)
dataValues
=
DBcursor
.
fetchall
()[
0
][
0
]
# Accéder à l'élément à l'indice 0 de la première liste
results
=
DBcursor
.
fetchall
()
debugLog
(
style
.
YELLOW
,
results
,
logging
.
INFO
)
dataValues
=
results
[
0
][
'
count
'
]
# dataValues = DBcursor.fetchall()[0][0] # Accéder à l'élément à l'indice 0 de la première liste
return
dataValues
def
resetProgress
(
DB_params
,
DB_schema
):
...
...
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