html is longtext, no empty_flash items in json

This commit is contained in:
j 2007-04-06 12:53:50 +00:00
commit 0f4565b8ab
3 changed files with 7 additions and 3 deletions

View file

@ -50,7 +50,10 @@ WHERE %s ORDER BY %s""" % \
item = ArchiveItem.get(m[0])
if not max_score:
max_score = m[1] / 100
item.score = m[1] / max_score
if max_score:
item.score = m[1] / max_score
else:
item.score = m[1]
result.append(item)
return result
@ -63,7 +66,7 @@ class ArchiveItem(SQLObject):
author = UnicodeCol()
authorSort = UnicodeCol(default = '')
description = UnicodeCol() # text(for rss)
html = UnicodeCol() #(for page, contains javascript)
html = UnicodeCol(length = 2**25) #(for page, contains javascript)
text = UnicodeCol(length = 2**25) #Fulltext
relDate = DateTimeCol() #timestamp (item released)
pubDate = DateTimeCol() #timestamp (item published)