Skip to content
Snippets Groups Projects
Commit edb849d5 authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

swimming in fetch functions..

parent 7a8a7d6b
No related branches found
No related tags found
No related merge requests found
Pipeline #102407 passed
...@@ -857,14 +857,16 @@ def getProgress(DBcursor, DBSchema, codeInsee, id_factor=None): ...@@ -857,14 +857,16 @@ def getProgress(DBcursor, DBSchema, codeInsee, id_factor=None):
DBcursor.execute(qry) DBcursor.execute(qry)
# debugLog(style.YELLOW, "fetchall: {}".format(DBcursor.fetchall()), logging.INFO) # debugLog(style.YELLOW, "fetchall: {}".format(DBcursor.fetchall()), logging.INFO)
# debugLog(style.YELLOW, "fetchone: {}".format(DBcursor.fetchone()), logging.INFO) # debugLog(style.YELLOW, "fetchone: {}".format(DBcursor.fetchone()), logging.INFO)
# dataValues = DBcursor.fetchall()[0][0] # Accéder à l'élément à l'indice 0 de la première liste
# results = DBcursor.fetchall() # results = DBcursor.fetchall()
dataValues = DBcursor.fetchone()[0]
dataValues = DBcursor.fetchone()
debugLog(style.YELLOW, "fetchone : {}".format(dataValues), logging.INFO) debugLog(style.YELLOW, "fetchone : {}".format(dataValues), logging.INFO)
# dataValues = results[0]['count']
# dataValues = DBcursor.fetchall()[0][0] # Accéder à l'élément à l'indice 0 de la première liste if dataValues is None:
return 0
# return dataValues['count']
return dataValues return dataValues
def resetProgress(DB_params, DB_schema): def resetProgress(DB_params, DB_schema):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment