diff -uNr a/logotron/MANIFEST.TXT b/logotron/MANIFEST.TXT --- a/logotron/MANIFEST.TXT 65b06852de68a2c839b687f0863e261cd387a25a94f10d8c84beb58da455057e6ffd0244a664c1cc64a6004cc4dd1a44b5440ebfcb83bdbaf62c605bee42737f +++ b/logotron/MANIFEST.TXT 3f84fd0800be6139ceb1bf422af7d524b8a5faabe79d64ad2eba86c2f1cd9c311b537466aca94a65af4adaf0b5a156e14e0ebfb70b475490bfcc24ce4cd97593 @@ -6,3 +6,4 @@ 590448 uniturds_etc asciilifeform "Phf's algo for uniturd digestion; cosmetic improvements to WWW displayer." 590458 line_wraps asciilifeform "Trinque's method to force wrap in long lines; Removed some commented rubbish from reader.py." 590714 znc2tmsr_etc lobbes "Converter of znc logs to the tmsr format used by the logotron. Small fixes to eat_dump.py." +593779 uptimefix_bye_cache lobbes "Fix in bot.py for global time_last_conn. Remove Cache from reader.py. Small README fix re: create database." diff -uNr a/logotron/README.txt b/logotron/README.txt --- a/logotron/README.txt 90a1c2e178dec4991603e7295a180ddec5dc9b07c14fb924b8b78645a00797edda0b01fc872fa2b5ba346dfac2e769d526c002808cb8091bfe98aaf328f8c918 +++ b/logotron/README.txt a6bfa0bc96bde13236f34d83bff5d8053e73031be0ba1aafe29c84f8e38f475470919e785d2a9afa6e134f02a6c64908e14be04c89465c8cfcf5958fba23b13b @@ -16,7 +16,7 @@ create user nsabot createdb; alter role nsabot superuser; -createdb nsalog; +create database nsalog; grant all privileges on database nsalog to nsabot ; ... you can take 'super' away from this user after 1st run, diff -uNr a/logotron/bot.py b/logotron/bot.py --- a/logotron/bot.py f8aaac719d30714fb9d79e3a0e59daf3fc306d75d1aef8837919696ff81787c082eaffb5c42cc4cdfa85c78267c2cf362c5bd2c623d11cafc4ae32ac471d1d19 +++ b/logotron/bot.py 19772a67f431072de4c51c6600d860c8cbb77f4e5172f4c20f43078565eda7c07c599e165ee588552741a703cbd13b1043d6c2850858cbe2cc9d3f5249f54c8f @@ -218,6 +218,7 @@ # IRCate until we get disconnected def irc(): global connected + global time_last_conn # Connect to one among the specified servers, in given priority : while not connected: diff -uNr a/logotron/reader.py b/logotron/reader.py --- a/logotron/reader.py d1406f0ab9794ea23abd5fe7ca87a66320a5b2f56ed22976a0afae51e2a0755b7c42ba4bdf29ab2b0b045fe0e2c700fd2e6af50b1279d54e3bc13cfe01ea8ca7 +++ b/logotron/reader.py d7226dd875d288b7cf41cbf6a8aa5bd9c9e3a066a0ef885065e1ae55d643833dfa74080cd80128f3d9d3ea75e67f92add8c9c7d44780c4b4c5abc26411d43af2 @@ -21,7 +21,6 @@ render_template, abort, g, flash, _app_ctx_stack, make_response, \ jsonify from flask import Flask -from flask.ext.cache import Cache ############################################################################## ############################################################################## @@ -71,7 +70,6 @@ ############################################################################## app = Flask(__name__) -cache = Cache(app,config={'CACHE_TYPE': 'simple'}) app.config.from_object(__name__) def get_db():