0

conn.commit() ^ SyntaxError: invalid syntax [Finished in 451ms]

i am having the above and i am new to this and not able to understand how to fix that

with conn.cursor() as cur:
        if eco.shape[0]>0:
            for i in range(len(eco)):
                cur.execute('''update repairOperation_ecotraveler set part_number = {0},current_revision = {1},upgrade_revision = {2},eco = {3},description = {4} where id = {5};'''.format((eco[part_number][i], eco[current_revision][i], eco[upgrade_revision][i], eco[eco][i], eco[description][i])))
                conn.commit()

vidathri
  • 101
  • 1
  • 9

0 Answers0