Author: rshortt
Date: Thu Mar 16 02:45:41 2006
New Revision: 1290
Modified:
trunk/base/src/db.py
Log:
classic int() fix
Modified: trunk/base/src/db.py
==============================================================================
--- trunk/base/src/db.py (original)
+++ trunk/base/src/db.py Thu Mar 16 02:45:41 2006
@@ -1063,7 +1063,7 @@
# Fetch number of files that are keyword indexed. (Used in score
# calculations.)
row = self._db_query_row("SELECT value FROM meta WHERE
attr='keywords_objectcount'")
- objectcount = int(row[0])
+ objectcount = int(float(row[0]))
# Convert words string to a tuple of lower case words.
words = tuple(str_to_unicode(words).lower().split())
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog