Skip to content

Commit

Permalink
Merge pull request #22 from ManagedKube/nexus2
Browse files Browse the repository at this point in the history
nexus2
  • Loading branch information
sekka1 authored Aug 15, 2024
2 parents 9059312 + 7233d5b commit 2279911
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
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

0 comments on commit 2279911

Please sign in to comment.