1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Make configurable the number of days to remove old sessions

This commit is contained in:
Ty Cobb 2019-09-11 22:10:34 -05:00 committed by Frédéric Guillot
parent 8d8f78241d
commit 3a60abbac0
6 changed files with 57 additions and 12 deletions

View file

@ -118,6 +118,8 @@ func (p *Parser) parseLines(lines []string) (err error) {
p.opts.batchSize = parseInt(value, defaultBatchSize)
case "ARCHIVE_READ_DAYS":
p.opts.archiveReadDays = parseInt(value, defaultArchiveReadDays)
case "REMOVE_SESSIONS_DAYS":
p.opts.removeSessionsDays = parseInt(value, defaultRemoveSessionsDays)
case "PROXY_IMAGES":
p.opts.proxyImages = parseString(value, defaultProxyImages)
case "CREATE_ADMIN":