frn codice nan
This commit is contained in:
@ -9,7 +9,7 @@ def update_records(connection,codice,prezzo,sc1,sc2,listino,ricarica,codice_barr
|
||||
print('test test')
|
||||
cursor = connection.cursor()
|
||||
cursor_select = connection.cursor()
|
||||
print('cursor test')
|
||||
print(codice_alternativo)
|
||||
try:
|
||||
result = []
|
||||
print('test 1')
|
||||
@ -55,7 +55,7 @@ def update_records(connection,codice,prezzo,sc1,sc2,listino,ricarica,codice_barr
|
||||
count = cursor.rowcount
|
||||
result.append(count)
|
||||
print('test 8')
|
||||
if frn is not None:
|
||||
if frn is not None and math.isnan(frn):
|
||||
query_art = "UPDATE art SET FRN_CODICE = %s WHERE codice = %s"
|
||||
cursor.execute(query_art, (frn, codice))
|
||||
count = cursor.rowcount
|
||||
|
||||
Reference in New Issue
Block a user