Changeset 121

Show
Ignore:
Timestamp:
12/07/09 21:56:51 (5 years ago)
Author:
vinicius
Message:

Returning file_id even when no update is done

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • donkeysurvey/database/FileDAO.py

    r116 r121  
    3131                if f.partialSize < file.partialSize: 
    3232                    self.cursor.execute(queryUpdate)  
    33                     return f.id 
     33                return f.id 
    3434            else: 
    3535                queryInsert = "INSERT INTO %s(hash, size, partial_size, best_name) VALUES('%s', %s, %s, '%s')" % (self.tablename, file.hash, file.size, file.partialSize, file.bestName)