it has been necessary on there functions when pulling stuff out of the db.
So I added it to this one so I wouldn't get burned again.


On Thu, May 1, 2014 at 4:26 PM, adamrp <notifications@github.com> wrote:

> In python_code/data_access/ag_data_access.py:
>
> > @@ -776,3 +779,12 @@ def getBarcodesByKit(self, kitID):
> >          barcodes = [row[0] for row in results]
> >          return barcodes
> >
> > +    def checkPrintResults(self, kit_id):
> > +        con = self.getMetadataDatabaseConnection()
> > +        results = con.cursor()
> > +        con.cursor().callproc('ag_get_print_results', [kit_id, results])
> > +        print_results = results.fetchone()
> > +        if print_results is None:
> > +            return None
> > +        else:
> > +            return print_results[0].strip()
>
> Just out of curiosity, is the strip necessary?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/qiime/qiime_web_app/pull/691/files#r12211104>
> .
>