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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11385, comment 6

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