Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python SQLAlchemy Basics Working with SQLAlchemy Search for a Book

Luis Gutierrez
seal-mask
.a{fill-rule:evenodd;}techdegree
Luis Gutierrez
Python Development Techdegree Student 4,771 Points

clean_id()

why is the clean_id() function after the clean_price function and before the add_csv(). does it really matter? in the model class the id attribute is first than the price attribute. just asking...???

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Treehouse Project Reviewer

It shouldn't matter necessarily, it all depends on how and when their being called if they need to happen in a certain order. I think like you do though and feel things should be laid out in a logical order like you mentioned. It helps me read my own code later on better.