frn codice nan
This commit is contained in:
1
.~lock.LISTINO SETTEF OK 2025.xlsx#
Normal file
1
.~lock.LISTINO SETTEF OK 2025.xlsx#
Normal file
@ -0,0 +1 @@
|
||||
,pc-sviluppo1,pcsviluppo1,13.12.2024 10:29,file:///home/pc-sviluppo1/.config/libreoffice/4;
|
||||
BIN
Articoli_Inseriti13-12-2024_10-24.xlsx
Normal file
BIN
Articoli_Inseriti13-12-2024_10-24.xlsx
Normal file
Binary file not shown.
BIN
Articoli_Inseriti13-12-2024_10-28.xlsx
Normal file
BIN
Articoli_Inseriti13-12-2024_10-28.xlsx
Normal file
Binary file not shown.
BIN
LISTINO SETTEF OK 2025.xlsx
Normal file
BIN
LISTINO SETTEF OK 2025.xlsx
Normal file
Binary file not shown.
BIN
__pycache__/connection.cpython-310.pyc
Normal file
BIN
__pycache__/connection.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/insert.cpython-310.pyc
Normal file
BIN
__pycache__/insert.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/search.cpython-310.pyc
Normal file
BIN
__pycache__/search.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/update.cpython-310.pyc
Normal file
BIN
__pycache__/update.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/upload.cpython-310.pyc
Normal file
BIN
__pycache__/upload.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/write.cpython-310.pyc
Normal file
BIN
__pycache__/write.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/write_excel_insert.cpython-310.pyc
Normal file
BIN
__pycache__/write_excel_insert.cpython-310.pyc
Normal file
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