Skip to content

Conversation

@Nikita5390
Copy link
Collaborator

No description provided.

@Nikita5390 Nikita5390 added the ready for review This label shows, that your task is ready and I can rewiev it. label Jun 13, 2022
@Nikita5390 Nikita5390 requested a review from Chudopal June 13, 2022 19:42
Copy link
Owner

@Chudopal Chudopal left a comment

Choose a reason for hiding this comment

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

Прислушайся к рекомендациям и вниматльно смотри, что добавляешь в коммит

Comment on lines +23 to +26




Copy link
Owner

Choose a reason for hiding this comment

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

чето много очень строчек в конце файла, уменьши до 1 пустой

Comment on lines +46 to +62
#extra In progress
# @app.route("/cars/<option>", methods=["GET"])
# def get_options(option):
# response = get_cars().get('cars')
#
# id = request.args.get("id")
# price_usd = request.args.get("price_usd")
# brand = request.args.get("brand")
# model = request.args.get("model")
# generation = request.args.get("generation")
# year = request.args.get("year")
# rain_detector = request.args.get("rain_detector")
# interior_material = request.args.get("interior_material")
# created_advert = request.args.get("created_advert")
# .......
# response = UserStorage('1.json').find_users(name=name, job=job)
# return jsonify(list(response))
Copy link
Owner

Choose a reason for hiding this comment

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

ойойой комменты не пуш...

Comment on lines +1 to +17
{
"cars_number": 25,
"cars": [
{
"id": 101068323,
"price_usd": 22300,
"brand": "Nissan",
"model": "Leaf",
"generation": "II",
"year": "2017",
"rain_detector": true,
"interior_material": "ткань",
"created_advert": "2022-05-01T18:59:04+0000"
}

]
} No newline at end of file
Copy link
Owner

@Chudopal Chudopal Jun 14, 2022

Choose a reason for hiding this comment

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

если этот файл твоего хранилища и он не нужен для задачи - то не добавляй такое в коммит

@app.route("/schedule/<string:week_day>/<string:date>")
def get_schedule(week_day, date):
date = f"{week_day}, {date}"
data = schedule_storage.get_data().get('monday')[0].items()
Copy link
Owner

Choose a reason for hiding this comment

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

Да, по дню недели верно, но фильтрация по дате отсуствует, надо добавить

@Chudopal Chudopal added in progress This label indicates that your task is not ready, but you are working on it. and removed ready for review This label shows, that your task is ready and I can rewiev it. labels Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in progress This label indicates that your task is not ready, but you are working on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants