aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2016-04-25 14:54:07 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2016-04-25 14:54:07 +0200
commita838fd9856244f65075c22aee3e3659fc09df86a (patch)
tree82ba81515f28d6fd7b23db1c76e7fe4f5f6b29ac
parent9f1a075e7bc85b119392e255dcac3219e71f85ac (diff)
do not count bots for reading the poll
-rw-r--r--dudle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/dudle.rb b/dudle.rb
index 0306dda..87b3fe9 100644
--- a/dudle.rb
+++ b/dudle.rb
@@ -122,7 +122,7 @@ class Dudle
if is_poll?
# log last read acces manually (no need to grep server logfiles)
- File.open("last_read_access","w").close
+ File.open("last_read_access","w").close unless @cgi.user_agent =~ /bot/i
@basedir = ".."
inittabs
@table = YAML::load(VCS.cat(self.revision, "data.yaml"))