Example #1
0
def project_info(request):
    """ Return infos about tipboard server """
    cache = MyCache()
    return JsonResponse(
        dict(is_redis_connected=cache.isRedisConnected,
             last_update=cache.getLastUpdateTime(),
             first_start=cache.getFirstTimeStarter(),
             project_default_config=BASIC_CONFIG,
             dashboard_list=getConfigNames(),
             redis_db=REDIS_DB))
Example #2
0
def project_info(
    request
):  # TODO: add uptime and last update time and redis connected and numnber of tile in redis
    """ Return info of server tipboard """
    cache = MyCache()
    return JsonResponse(
        dict(is_redis_connected=cache.isRedisConnected,
             last_update=cache.getLastUpdateTime(),
             first_start=cache.getFirstTimeStarter(),
             project_default_config=BASIC_CONFIG,
             dashboard_list=getConfigNames(),
             redis_db=REDIS_DB))