-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added a server implementation alternative #2
base: master
Are you sure you want to change the base?
Conversation
|
||
## Running as a server | ||
```sh | ||
python snag_yosemite_reservation.py --server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent with rest of README
python snag_yosemite_reservation.py --server | |
python3 snag_yosemite_reservation.py --server |
from datetime import datetime, timedelta | ||
|
||
def get_date(date): | ||
#2021-08-26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2021-08-26 | |
# 2021-08-26 |
```sh | ||
python snag_yosemite_reservation.py --server | ||
``` | ||
Runs on port http port 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems redundant
Runs on port http port 80 | |
Runs on http port 80 |
end = datetime.strptime(end, '%Y-%m-%d') | ||
|
||
start_l = 0 | ||
end_l = 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does 30
represent? If this is related to # of days in a month, should this be 31, or even depend on the month?
result = '' | ||
if '|' in date: | ||
dates = date.split('|') | ||
if len(dates) == 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this case represent?
I WANNA GO HERE