Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nexus2 #22

Merged
merged 12 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nexus-trusted-traveler-scheduler-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Push is for testing only to allow you to test this workflow without
# a merge and just a push.
# push:
# pull_request:
pull_request:
# types:
# - closed
# branches:
Expand Down
2 changes: 1 addition & 1 deletion nexus-global-entry/trusted-traveler-scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pip3 install -r requirements.txt

## Test notifications
```
python ttp.py -t
python3 ttp.py -t
```

## Running
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ def _get_schedule(self, location_id: int) -> None:
schedule = self._evaluate_timestamp(
schedule, location_id, appointment["startTimestamp"]
)

## GarDebug
foo = datetime.strptime(appointment["startTimestamp"], "%Y-%m-%dT%H:%M").isoformat()
date_string1 = datetime.strftime(appointment["startTimestamp"], '%a, %B %d, %Y')
date_string2 = datetime.strftime(appointment.appointment_date, '%a, %B %d, %Y')
print(f"GarDebug: the appointment datetime stamp: {foo} | {date_string1} | {date_string2}")
# sys.exit()

all_active_appointments.append(datetime.strptime(appointment["startTimestamp"], "%Y-%m-%dT%H:%M").isoformat())

self._clear_database_of_claimed_appointments(location_id, all_active_appointments)
Expand Down
Loading