frn codice nan

This commit is contained in:
2024-12-13 10:31:20 +01:00
parent 247d0ad1d2
commit 5f926583aa
13 changed files with 5 additions and 4 deletions

View File

@ -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.

BIN
LISTINO SETTEF OK 2025.xlsx Normal file

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.

View File

@ -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 = []

View File

@ -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