def total_images_add():
    r = redis.StrictRedis(host=REDIS_ADDR, port=REDIS_PORT, db=REDIS_DB, decode_responses=True)
    total = r.get('IMG_TOTAL')
    if (not total):
        r.set('IMG_TOTAL', 1)
        return 1
    r.set('IMG_TOTAL', (int(total) + 1))
    return (int(total) + 1)
def total_images_add():
    r = redis.StrictRedis(host=REDIS_ADDR, port=REDIS_PORT, db=REDIS_DB, decode_responses=True)
    total = r.get('IMG_TOTAL')
    if (not total):
        r.set('IMG_TOTAL', 1)
        return 1
    r.set('IMG_TOTAL', (int(total) + 1))
    return (int(total) + 1)