Changeset 3821

Show
Ignore:
Timestamp:
06/11/08 02:18:42 (5 months ago)
Author:
e2jk
Message:

Corrected faulty file status (rev is stored as text in the db, not int...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ticketmodifiedfilesplugin/0.11/setup.py

    r3815 r3821  
    44    name='TicketModifiedFiles', 
    55    description='Trac plugin that lists the files that have been modified while resolving a ticket', 
    6     version='0.4', 
     6    version='0.5', 
    77    license='BSD', 
    88    author='Emilien Klein', 
  • ticketmodifiedfilesplugin/0.11/ticketmodifiedfiles/ticketmodifiedfiles.py

    r3815 r3821  
    135135        #Get the last status of each file 
    136136        for file in files: 
    137             cursor.execute("SELECT change_type FROM node_change WHERE path='" + file + "' ORDER BY rev DESC LIMIT 1") 
     137            cursor.execute("SELECT change_type FROM node_change WHERE path='" + file + "' ORDER BY CAST(rev as integer) DESC LIMIT 1") 
    138138            for change_type, in cursor: 
    139139                filestatus[file] = change_type