updated the query
This commit is contained in:
@@ -98,16 +98,7 @@ def scan():
|
||||
date = request.form.get('date')
|
||||
time = request.form.get('time')
|
||||
|
||||
# Print the values to the terminal for debugging with single quotes
|
||||
print("Values to be inserted:")
|
||||
print(f"Operator Code: '{operator_code}'")
|
||||
print(f"CP Code: '{cp_code}'")
|
||||
print(f"OC1 Code: '{oc1_code}'")
|
||||
print(f"OC2 Code: '{oc2_code}'")
|
||||
print(f"Defect Code: '{defect_code}'")
|
||||
print(f"Date: '{date}'")
|
||||
print(f"Time: '{time}'")
|
||||
|
||||
|
||||
try:
|
||||
# Connect to the database
|
||||
conn = get_db_connection()
|
||||
@@ -137,7 +128,7 @@ def scan():
|
||||
conn = get_db_connection()
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("""
|
||||
SELECT Id, operator_code, CP_full_code, OC1_code, OC2_code, quality_code, date, time, approved_quantity, rejected_quantity
|
||||
SELECT Id, operator_code, CP_base_code, OC1_code, OC2_code, quality_code, date, time, approved_quantity, rejected_quantity
|
||||
FROM scan1_orders
|
||||
ORDER BY Id DESC
|
||||
LIMIT 15
|
||||
|
||||
Reference in New Issue
Block a user