Compare commits

..

2 commits
0.2.0 ... main

Author SHA1 Message Date
Enrique Barcelli 9bf834148f
Fix typo 2025-03-17 08:04:18 +08:00
Enrique Barcelli 9c62a84810
Fix typo in README.md 2025-03-10 23:21:47 +08:00
2 changed files with 2 additions and 2 deletions

View file

@ -13,5 +13,5 @@ These Python scripts allow to extract records from the DineConnect API and post
* Copy the file `config-sample.py` to `config.py`. * Copy the file `config-sample.py` to `config.py`.
* Edit `config.py` with your credentials and defaults. * Edit `config.py` with your credentials and defaults.
* To extract the tickets records from the DineConnect API and post them to the Mongo database, run `python3 extract_tickets.py` and follow the instructions of the script. * To extract the tickets records from the DineConnect API and post them to the Mongo database, run `python3 extract_tickets.py` and follow the instructions of the script.
* To delete tickets from the Mongo database, run `python3 delte_tickets.py` and follow de instructions of the script. * To delete tickets from the Mongo database, run `python3 delete_tickets.py` and follow de instructions of the script.

View file

@ -7,7 +7,7 @@ import base64
def extract_tickets(): def extract_tickets():
from_date = str(input('From date [YYYY-MM-DD]: ') or "") from_date = str(input('From date [YYYY-MM-DD]: ') or "")
to_date = str(input('To date YYYY-MM-DD]: ') or "") to_date = str(input('To date [YYYY-MM-DD]: ') or "")
url = base_url + "api/Account/Authenticate/" url = base_url + "api/Account/Authenticate/"
payload = json.dumps({ payload = json.dumps({
"tenancyName": api_tenancy_name, "tenancyName": api_tenancy_name,