Ejemplo n.º 1
0
def home():
    """Home page."""
    return render_template(
        'public/home.html',
        num_samples = get_samples(count=True),
        num_reports = get_reports_data(count=True),
        num_uploads_processing = get_queued_uploads(count=True, filter_cats=["NOT TREATED", "IN TREATMENT"])
    )
Ejemplo n.º 2
0
def queued_uploads():
    return render_template(
        'users/queued_uploads.html',
        db = db,
        User = User,
        user_token = current_user.api_token,
        uploads = get_queued_uploads()
        )
Ejemplo n.º 3
0
def count_queued_uploads():
    count = get_queued_uploads(count=True)
    return jsonify({'success': True, 'count': count})
Ejemplo n.º 4
0
def count_queued_uploads():
    count = get_queued_uploads(count=True)
    return jsonify({"success": True, "count": count})