Removes unneeded stats calls during rss generation.
This commit is contained in:
parent
ddd07883cb
commit
7d40153217
2 changed files with 3 additions and 9 deletions
|
|
@ -650,8 +650,7 @@ get "/":
|
||||||
get "/threadActivity.xml":
|
get "/threadActivity.xml":
|
||||||
createTFD()
|
createTFD()
|
||||||
c.isThreadsList = true
|
c.isThreadsList = true
|
||||||
var count = 0
|
resp genThreadsRSS(c), "application/atom+xml"
|
||||||
resp genRSS(c), "application/atom+xml"
|
|
||||||
|
|
||||||
get "/t/@threadid/?@page?/?":
|
get "/t/@threadid/?@page?/?":
|
||||||
createTFD()
|
createTFD()
|
||||||
|
|
|
||||||
|
|
@ -69,14 +69,8 @@
|
||||||
type="application/atom+xml" rel="alternate">
|
type="application/atom+xml" rel="alternate">
|
||||||
#end proc
|
#end proc
|
||||||
#
|
#
|
||||||
#proc genRSS(c: var TForumData): string =
|
#proc genThreadsRSS(c: var TForumData): string =
|
||||||
# result = ""
|
# 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,
|
# const query = sql"""SELECT A.id, A.name,
|
||||||
# strftime('%Y-%m-%dT%H:%M:%S', (A.modified)),
|
# strftime('%Y-%m-%dT%H:%M:%S', (A.modified)),
|
||||||
# COUNT(B.id), C.name, B.content, B.id
|
# COUNT(B.id), C.name, B.content, B.id
|
||||||
|
|
@ -91,6 +85,7 @@
|
||||||
# const postAuthor = 4
|
# const postAuthor = 4
|
||||||
# const postContent = 5
|
# const postContent = 5
|
||||||
# const postId = 6
|
# const postId = 6
|
||||||
|
# let frontQuery = c.req.makeUri("/")
|
||||||
# let recent = GetValue(db, sql"""SELECT
|
# let recent = GetValue(db, sql"""SELECT
|
||||||
# strftime('%Y-%m-%dT%H:%M:%S', (modified)) FROM thread
|
# strftime('%Y-%m-%dT%H:%M:%S', (modified)) FROM thread
|
||||||
# ORDER BY modified DESC LIMIT 1""")
|
# ORDER BY modified DESC LIMIT 1""")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue