Skip to content

Commit

Permalink
redis-list-range includes the last element as well so substract 1 fro…
Browse files Browse the repository at this point in the history
…m the "to" value in the "browse pastes" page
  • Loading branch information
DerGuteMoritz committed Jun 1, 2011
1 parent e5561b7 commit 8342542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastiche.scm
Expand Up @@ -117,7 +117,7 @@
(reverse
(map (lambda (p)
(deserialize (redis-list-ref (redis-connection) (car p) (cdr p))))
(map deserialize (redis-list-range (redis-connection) 'pastes from to)))))
(map deserialize (redis-list-range (redis-connection) 'pastes from (- to 1))))))

(define (make-post-table n #!optional (from 0))
(define (format-row r)
Expand Down

0 comments on commit 8342542

Please sign in to comment.