Webapp1

Manually in the interpreter. Would have done it in pytest, but mine wasn't
cooperating.
On Jun 26, 2014 8:08 AM, "Lawrence Fritts" <notifications@github.com> wrote:

> In db_methods.py:
>
> > @@ -59,7 +59,7 @@ def get_results(school_name, number_to_return):
> >      school_type = cur.fetchone()
> >      cur.execute(DB_GET_SCHOOLS_BY_TYPE, [school_type])
> >      search_schools = cur.fetchall()
> > -    return_schools = find_schools(school_id, search_schools, number_to_return)
> > +    return_schools = find_schools(school_id[0], search_schools, number_to_return)
>
> Well son of a bitch……how were you running the tests
> … <#146d8b834e67d48f_>
> On Jun 26, 2014, at 7:51 AM, Perry Hook <notifications@github.com> wrote:
> In db_methods.py: > @@ -59,7 +59,7 @@ def get_results(school_name,
> number_to_return): > school_type = cur.fetchone() >
> cur.execute(DB_GET_SCHOOLS_BY_TYPE, [school_type]) > search_schools =
> cur.fetchall() > - return_schools = find_schools(school_id, search_schools,
> number_to_return) > + return_schools = find_schools(school_id[0],
> search_schools, number_to_return) that's weird, when I run my test for that
> error on redmond high's id, 3528, on the whole list I don't get an error.
> So that means that either the list of schools being searched on doesn't
> have that ID (is the list you're searching on High Schools?) or the ID
> we're getting to search on is incorrect? — Reply to this email directly or
> view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lfritts/clustering_school_data/pull/16/files#r14245613>
> .
>