Removes unneeded stats calls during rss generation.

This commit is contained in:
Grzegorz Adam Hankiewicz 2013-03-28 23:03:50 +01:00
commit 7d40153217
2 changed files with 3 additions and 9 deletions

View file

@ -650,8 +650,7 @@ get "/":
get "/threadActivity.xml":
createTFD()
c.isThreadsList = true
var count = 0
resp genRSS(c), "application/atom+xml"
resp genThreadsRSS(c), "application/atom+xml"
get "/t/@threadid/?@page?/?":
createTFD()

View file

@ -69,14 +69,8 @@
type="application/atom+xml" rel="alternate">
#end proc
#
#proc genRSS(c: var TForumData): string =
#proc genThreadsRSS(c: var TForumData): string =
# result = ""
# var stats: TForumStats
# let frontQuery = c.req.makeUri("/")
# if c.isThreadsList: stats = c.getStats(false)
# else:
# stats = c.getStats(true)
# end if
# const query = sql"""SELECT A.id, A.name,
# strftime('%Y-%m-%dT%H:%M:%S', (A.modified)),
# COUNT(B.id), C.name, B.content, B.id
@ -91,6 +85,7 @@
# const postAuthor = 4
# const postContent = 5
# const postId = 6
# let frontQuery = c.req.makeUri("/")
# let recent = GetValue(db, sql"""SELECT
# strftime('%Y-%m-%dT%H:%M:%S', (modified)) FROM thread
# ORDER BY modified DESC LIMIT 1""")