-
Notifications
You must be signed in to change notification settings - Fork 14
[#H17] (Added task 1,2,3) #60
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
base: main
Are you sure you want to change the base?
Conversation
Chudopal
left a comment
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.
Прислушайся к рекомендациям и вниматльно смотри, что добавляешь в коммит
|
|
||
|
|
||
|
|
||
|
|
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.
чето много очень строчек в конце файла, уменьши до 1 пустой
| #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)) |
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.
ойойой комменты не пуш...
| { | ||
| "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 |
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.
если этот файл твоего хранилища и он не нужен для задачи - то не добавляй такое в коммит
| @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() |
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.
Да, по дню недели верно, но фильтрация по дате отсуствует, надо добавить
No description provided.