Skip to content

Kunzite - Carline Senat & Danica Sarmiento#13

Open
lattei wants to merge 12 commits intoAda-C19:mainfrom
lattei:main
Open

Kunzite - Carline Senat & Danica Sarmiento#13
lattei wants to merge 12 commits intoAda-C19:mainfrom
lattei:main

Conversation

@lattei
Copy link
Copy Markdown

@lattei lattei commented Apr 24, 2023

No description provided.

@lattei lattei changed the title Part 1 - Complete! Kunzite - Carline Senat & Danica Sarmiento Apr 24, 2023
Copy link
Copy Markdown

@spitsfire spitsfire left a comment

Choose a reason for hiding this comment

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

Looks good! Stay consistent with your response bodies, though, and don't forget the status code!

Comment thread app/models/planet.py

@classmethod
def from_dict(cls, planet_data):
new_planet = Planet(name=planet_data["name"],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
new_planet = Planet(name=planet_data["name"],
new_planet = cls(name=planet_data["name"],

Comment thread app/routes.py
planets_response = []
for planet in planets:
planets_response.append(planet.to_dict())
return jsonify(planets_response)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

whoops, forgot your status code

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