Example #1
0
def blacklistsUpdate():
    db = Database()
    blacklists = db.getAllBlacklist()
    template = get_template('blacklists.html')
    return template.render({
        "blacklists": blacklists,
        "total": len(blacklists)
    })
Example #2
0
def index():
    db = Database()
    totalRequests = len(db.getAllLogs())
    totalBlacklists = len(db.getAllBlacklist())

    template = get_template('index.html')
    return template.render({
        "total_requests": totalRequests,
        'total_blacklists': totalBlacklists
    })