Permalink
Browse files

redis-list-range includes the last element as well so substract 1 fro…

…m the "to" value in the "browse pastes" page
  • Loading branch information...
1 parent e5561b7 commit 8342542446596bb320b43943a788f861dd6fcea9 @DerGuteMoritz DerGuteMoritz committed Jun 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pastiche.scm
View
2 pastiche.scm
@@ -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)

0 comments on commit 8342542

Please sign in to comment.