Skip to content

Zoisite - Jessica and Whitney - Waves 1 & 2#19

Open
WhitShake wants to merge 19 commits intoAda-C19:mainfrom
WhitShake:main
Open

Zoisite - Jessica and Whitney - Waves 1 & 2#19
WhitShake wants to merge 19 commits intoAda-C19:mainfrom
WhitShake:main

Conversation

@WhitShake
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@apradoada apradoada left a comment

Choose a reason for hiding this comment

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

Overall this looks really great! Well done, y'all!

Comment thread app/__init__.py

from .routes import planets_bp
app.register_blueprint(planets_bp)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks great!

Comment thread app/routes.py Outdated
Planet(6, "Saturn", "Known for its prominent rings made of ice and dust", 568),
Planet(7, "Uranus", "Blue-green planet with a tilted axis of rotation", 86.8),
Planet(8, "Neptune", "Blue planet with a windy atmosphere and many storms", 102),
]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job setting up your planet class and planet list!

Comment thread app/routes.py Outdated
for planet in planet_list:
planets_response.append(planet.to_dict())

return jsonify(planets_response), 200
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks good, but I wonder if it would be a good candidate for a list comprehension... 🤔

Comment thread app/routes.py Outdated
if planet.id == id:
return planet

abort(make_response({"message": f"Planet {id} is not found!"}, 404)) No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The rest of this looks good too! Well done!

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.

3 participants