diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2014-02-21 22:20:03 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2014-02-21 22:20:03 +0100 |
commit | a76c6cb9f7d316d219475504d26214b9e7b3e694 (patch) | |
tree | 70118d357df8f3a2084da2a37c9cf476302454aa /config_defaults.rb | |
parent | 0b2e3fd216a65c86a27e054e1cc0b1e694ff14be (diff) |
fix slow read of all polls in config_default
Diffstat (limited to 'config_defaults.rb')
-rw-r--r-- | config_defaults.rb | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/config_defaults.rb b/config_defaults.rb index c4e8948..c6e2b8e 100644 --- a/config_defaults.rb +++ b/config_defaults.rb @@ -49,24 +49,7 @@ $conf.bugreportmail = "Benjamin.Kellermann@gmx.de" $conf.auto_send_report = false $conf.known_errors = [] -$conf.indexnotice = <<INDEXNOTICE -<h2>Available Polls</h2> -<table> - <tr> - <th>Poll</th><th>Last change</th> - </tr> -INDEXNOTICE -Dir.glob("*/data.yaml").sort_by{|f| - File.new(f).mtime -}.reverse.collect{|f| f.gsub(/\/data\.yaml$/,'') }.each{|site| - $conf.indexnotice += <<INDEXNOTICE -<tr class='participantrow'> - <td class='polls'><a href='./#{CGI.escapeHTML(site).gsub("'","%27")}/'>#{CGI.escapeHTML(site)}</a></td> - <td class='mtime'>#{File.new(site + "/data.yaml").mtime.strftime('%d.%m, %H:%M')}</td> -</tr> -INDEXNOTICE -} -$conf.indexnotice += "</table>" +$conf.indexnotice = "" $conf.examples = [] |