1
0
Fork 0
tekuti/tekuti
Tom Willemse 6da1ed8fd2 Fix some “Numerical overflow” errors
When starting a new blog, or trying to run on some very old data, there is no
data available on any bogus or legitimate comments. When this happens Tekuti
will try to divide by 0 and divide 0 by other things in a few places, assuming
that there is at least _some_ data about bogus and legitimate comments.

I’m not 100% sure what the expectation is of these calculations, so I might have
chosen the wrong solution, but it seems to me that if there is no data
available, all we know is that there is nothing (0).

This fixes an issue with both trying to comment on a fresh new data set, or a
dataset that hasn’t been touched since 2014.
2021-05-30 01:21:47 -07:00
..
base64.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
boot.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
cache.scm Fix spurious 304 error 2016-08-28 10:58:34 +02:00
classifier.scm Fix some “Numerical overflow” errors 2021-05-30 01:21:47 -07:00
comment.scm Add bogus comment detector. 2017-03-06 09:41:52 +01:00
config.scm Add comment closing window feature 2021-03-08 15:04:23 +01:00
filters.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
git.scm Check that a revision has been provided before trying to parse it 2021-05-30 01:16:48 -07:00
index.scm Add bogus comment detector. 2017-03-06 09:41:52 +01:00
match-bind.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
mod-lisp.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
page-helpers.scm Add comment closing window feature 2021-03-08 15:04:23 +01:00
page.scm Add comment closing window feature 2021-03-08 15:04:23 +01:00
post.scm Fix comments-open? logic. sadness 2021-03-08 15:49:41 +01:00
request.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
tags.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00
template.scm Scheme-relative URL 2014-10-15 09:35:36 +02:00
util.scm Fix expanduser on absolute paths. 2014-10-22 16:14:59 +02:00
web.scm remove trailing whitespace 2012-02-12 20:48:50 +01:00