Browse Source

Inconsistent config variable. Renamed USE_REDIS to REDIS_ENABLED.

sh4nks 11 years ago
parent
commit
03486dfcb6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/forum/views.py

+ 1 - 1
flaskbb/forum/views.py

@@ -431,7 +431,7 @@ def markread(forum_id=None):
 
 @forum.route("/who_is_online")
 def who_is_online():
-    if current_app.config['USE_REDIS']:
+    if current_app.config['REDIS_ENABLED']:
         online_users = get_online_users()
     else:
         online_users = User.query.filter(User.lastseen >= time_diff()).all()