Most of indentation done.


On Tue, Jul 23, 2013 at 1:00 AM, David Baumgold <notifications@github.com>wrote:

> In common/djangoapps/student/views.py:
>
> > +    interested_category=""
> > +    for code,categ in UserProfile.COURSE_CATEGORIES:
> > +	if code == str(area_interest):
> > +		interested_category = categ
> > +		break
> > +    query_course_category = "select courseName,courseCategory from course_categories where courseCategory='"+area_interest+"'"
> > +    cursor.execute(query_course_category)
> > +    row = cursor.fetchall()
> > +    similar_category_courses = []
> > +    for a in row:
> > +	similar_category_courses.append(a[0])
> > +
> > +    recommended_courses = get_courses(request.user, request.META.get('HTTP_HOST'))
> > +    recommend_courses = []
> > +    for check_course in recommended_courses:
> > +	registered = registered_for_course(check_course,request.user)
>
> That's almost always due to mixing spaces and tabs in the same file. Never
> do that. <http://www.python.org/dev/peps/pep-0008/#tabs-or-spaces>. We
> use spaces for indentation, not tabs.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/edx/edx-platform/pull/300/files#r5328140>
> .
>