mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 03:36:22 -07:00
forgot to remove unused num_posts
This commit is contained in:
parent
e87330dc57
commit
a17fa4b4c9
1 changed files with 0 additions and 1 deletions
|
@ -315,7 +315,6 @@ func buildThread(op_id int, board_id int) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
var num_posts int
|
||||
//var num_pages int
|
||||
/*err = db.QueryRow("SELECT (SELECT COUNT(*) FROM `" + config.DBprefix + "posts` WHERE `boardid` = " + strconv.Itoa(board_id) + ") AS `count` WHERE `boardid` = " + strconv.Itoa(board_id) + " ORDER BY `" + config.DBprefix + "posts`.`id` DESC LIMIT 1").Scan(&num_posts)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue