- Timestamp:
- 07/01/08 10:54:21 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/sql.py
r3302 r3388 345 345 def getUserNbJobsFromHistory(self, user) : 346 346 """Returns the number of jobs the user has in history.""" 347 result = self.doSearch("SELECT COUNT(*) FROM jobhistory WHERE userid=%s" % self.doQuote(user.ident))347 result = self.doSearch("SELECT COUNT(*) AS count FROM jobhistory WHERE userid=%s" % self.doQuote(user.ident)) 348 348 if result : 349 349 return result[0]["count"]