frn codice nan
This commit is contained in:
@@ -0,0 +1 @@
|
||||
,pc-sviluppo1,pcsviluppo1,13.12.2024 10:29,file:///home/pc-sviluppo1/.config/libreoffice/4;
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,8 +15,8 @@ tla = 1
|
||||
value_insert = []
|
||||
def insert_records(connection,codice,descrizione,descrizione2,um,prezzo,sc1,sc2,ricarica,listino,codice_alternativo,codice_barre,art,tsa_codice,frn):
|
||||
try:
|
||||
|
||||
print(frn)
|
||||
print('insert codice nan')
|
||||
print(codice_alternativo)
|
||||
print(tsa_codice)
|
||||
cursor_select = connection.cursor()
|
||||
result = []
|
||||
|
||||
@@ -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