Ag searchforwwwadmin

These changes are needed for wwwadmin
created issue #56

On Tue, Sep 23, 2014 at 9:06 AM, Daniel McDonald <notifications@github.com>
wrote:

> In amgut/lib/data_access/ag_data_access.py:
>
> > +        cursor.close()
> > +        return results
> > +
> > +    def getBarcodeProjType(self, barcode):
> > +        """ Get the project type of the barcode.
> > +            Return a tuple of project and project type.
> > +        """
> > +        sql = """select p.project from project p inner join
> > +                 project_barcode pb on (pb.project_id = p.project_id)
> > +                 where pb.barcode = %s"""
> > +        con = self.connection
> > +        cursor = con.cursor()
> > +        cursor.execute(sql, [barcode])
> > +        results = cursor.fetchone()
> > +        proj = results[0]
> > +        #this will get changed to get the project type from the db
>
> could this be associated with an issue please?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/american-gut-web/pull/54/files#r17914365>.
>