Browse Source

FIX corrige requete d'insert ds tbl_importrh

olivier.massot 7 years ago
parent
commit
669487817d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      suiviactivite2pda.py

+ 3 - 3
suiviactivite2pda.py

@@ -134,12 +134,12 @@ def TraiteUnFichier(fichier):
                  "VehiculePersoTranche1, DistanceTranche2, VehiculePersoTranche2, Remarque, Depart, FichierXML,"
                  "DateImport, ResponsableImport )"
                      "VALUES "
-                 "({:text},{:text}, {:date},{:text}, {:text}, {:text},"
+                 "({},{:text}, {:date},{:text}, {:text}, {:text},"
                  "{:text}, {:float}, {:float}, {:float},{}, {:float},"
-                 "{:text}, {:float}, {:text}, {:text},{:text},{:text},"
+                 "{}, {:float}, {}, {:text},{:text},{:text},"
                  "{:date}, {:text})", CodeLigne, CodeAgent, DateDebut, CodeChantier, CodeLocalisation, Localisation,
                  CodeNatureRealisation, HeureSup1, HeureSup2, HeureSupDimanche, Repas, DistanceTranche1,
-                 "True" if VehiculePersoTranche1 != "0" else "False", DistanceTranche2, "True" if VehiculePersoTranche2 != "0" else "False", Remarque, "", fichier,
+                 VehiculePersoTranche1, DistanceTranche2, VehiculePersoTranche2, Remarque, "", fichier,
                  datetime.datetime.today(), 'scriptauto'
                  )