Browse Source

fixed quotes mistake

Sylhaf 2 years ago
parent
commit
aa567f0b2e
2 changed files with 3 additions and 3 deletions
  1. 2 2
      main.py
  2. 1 1
      references_example.conf

+ 2 - 2
main.py

@@ -206,7 +206,7 @@ LOGGER.setLevel(logging.CRITICAL)
 
 
 logger.info("CRM Login")
 logger.info("CRM Login")
 driver = webdriver.Edge()
 driver = webdriver.Edge()
-driver.get(dolibarr_url + "index.php")
+driver.get(str(dolibarr_url) + "/index.php")
 assert "Identifiant" in driver.title
 assert "Identifiant" in driver.title
 
 
 
 
@@ -223,7 +223,7 @@ current_date = datetime.datetime.now()
 
 
 if args.planned : 
 if args.planned : 
     logger.info("preparation phase : trigger planned work in CRM")
     logger.info("preparation phase : trigger planned work in CRM")
-    work_url = dolibarr_url + "/public/cron/cron_run_jobs_by_url.php?securitykey=" + \
+    work_url = str(dolibarr_url) + "/public/cron/cron_run_jobs_by_url.php?securitykey=" + \
         dolibarr_planned_work_key + "&userlogin=" + dolibarr_username + "&id=" + str(dolibarr_planned_work_cron_job_id)
         dolibarr_planned_work_key + "&userlogin=" + dolibarr_username + "&id=" + str(dolibarr_planned_work_cron_job_id)
     driver.get(work_url)
     driver.get(work_url)
     logger.info("temporization 1 sec....")
     logger.info("temporization 1 sec....")

+ 1 - 1
references_example.conf

@@ -1,5 +1,5 @@
 [credentials]
 [credentials]
-dolibarr_url = "https://your_dolibarr.com"
+dolibarr_url = https://your_dolibarr.com
 stripe_api_key = example_key_2349872349874
 stripe_api_key = example_key_2349872349874
 dolibarr_username = user
 dolibarr_username = user
 dolibarr_password = pass
 dolibarr_password = pass