Changes between Initial Version and Version 1 of Ticket #11385, comment 7


Ignore:
Timestamp:
Jan 11, 2014, 7:43:37 PM (10 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11385, comment 7

    initial v1  
    22
    33//owners with an s//
    4 
    5 Replying to [comment:6 anonymous]:
    6 > shouldn't line 2330
    7 >   {{{                owner.append(row[0])}}}
    8 > be
    9 >   {{{                owner.append(rows[0])}}}
    10 > ??
    11 >
    12 > Replying to [comment:5 anonymous]:
    13 > > here is the tested fix:
    14 > > {{{#!diff
    15 > > --- tracjsgantt/tracpm.py       (revision 13544)
    16 > > +++ tracjsgantt/tracpm.py       (working copy)
    17 > > @@ -2323,8 +2323,11 @@
    18 > >              values = []
    19 > >              for tid in ids:
    20 > >                  values.append([ tid ])
    21 > > -            cursor.executemany(query, values)
    22 > > -            owners = [row[0] for row in cursor]
    23 > > +            owners = []
    24 > > +            for id in values:
    25 > > +                cursor.execute(query, id)
    26 > > +                rows = cursor.fetchall()
    27 > > +                owner.append(row[0])
    28 > >              return set(owners)
    29 > >
    30 > >          # Helper to find open tickets by owners
    31 > > }}}