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

Added a server implementation alternative #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Maknee
Copy link

@Maknee Maknee commented Aug 8, 2021

I WANNA GO HERE

Yosomite


## Running as a server
```sh
python snag_yosemite_reservation.py --server
Copy link
Owner

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

Suggested change
python snag_yosemite_reservation.py --server
python3 snag_yosemite_reservation.py --server

server.py Show resolved Hide resolved
from datetime import datetime, timedelta

def get_date(date):
#2021-08-26
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#2021-08-26
# 2021-08-26

```sh
python snag_yosemite_reservation.py --server
```
Runs on port http port 80
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems redundant

Suggested change
Runs on port http port 80
Runs on http port 80

end = datetime.strptime(end, '%Y-%m-%d')

start_l = 0
end_l = 30
Copy link
Owner

@jarwino jarwino Aug 8, 2021

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?

@jarwino
Copy link
Owner

jarwino commented Aug 8, 2021

I WANNA GO HERE

Yosomite

Me too, bro

result = ''
if '|' in date:
dates = date.split('|')
if len(dates) == 2:
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants