Skip to content

Commit

Permalink
Create best, ask, and show pages (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden committed Jan 27, 2023
1 parent e4800b7 commit 07fb352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontpage.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func getFrontPageStories(ctx context.Context, ndb newsDatabase, ranking string,
if ranking != "hntop" {
orderBy = fmt.Sprintf("%sRank nulls last", ranking)
}
sql = fmt.Sprintf(hnPageSQL, priorWeight, overallPriorWeight, orderBy)
sql = fmt.Sprintf(hnPageSQL, priorWeight, overallPriorWeight, orderBy)
}

s, err = ndb.db.Prepare(sql)
Expand Down

0 comments on commit 07fb352

Please sign in to comment.