mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
Improve Request to be more idiomatic
This commit is contained in:
parent
4fc18647ca
commit
25cbd65777
20 changed files with 80 additions and 77 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
// ShowUnreadPage render the page with all unread entries.
|
||||
func (c *Controller) ShowUnreadPage(ctx *core.Context, request *core.Request, response *core.Response) {
|
||||
user := ctx.GetLoggedUser()
|
||||
offset := request.GetQueryIntegerParam("offset", 0)
|
||||
offset := request.QueryIntegerParam("offset", 0)
|
||||
|
||||
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
|
||||
builder.WithStatus(model.EntryStatusUnread)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue