# Path: app.py



import os
import sys
import time
from datetime import datetime
from redis import Redis
from flask import Response, request
from app import app
# -*- coding: utf-8 -*-
"""
    sessions.count_online_users
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Counting Online Users with Redis
    http://flask.pocoo.org/snippets/71/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




redis = Redis()
ONLINE_LAST_MINUTES = 5

# Path: app.py



# Path: sessions/count_online_users.py
import os
import sys
import time
from datetime import datetime
from redis import Redis
from flask import Response, request
from app import app

# -*- coding: utf-8 -*-
"""
    sessions.count_online_users
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Counting Online Users with Redis
    http://flask.pocoo.org/snippets/71/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




redis = Redis()
ONLINE_LAST_MINUTES = 5

app.config['ONLINE_LAST_MINUTES'] = ONLINE_LAST_MINUTES