Esempio n. 1
0
def worker_dashboard(request,worker_id):
    worker,bCreated = Worker.objects.get_or_create(session=None,worker=worker_id);	
    stats = models_stats.worker_stats(worker)
    worker_contibutions=models_stats.worker_to_session_contributions(worker_id);

    worker_training_info=WorkerTrainingProgress.objects.all().filter(worker=worker);

    return render_to_response('mturk/dashboard/worker_dashboard.html', {'worker':worker,'stats':stats,'contributions':worker_contibutions,'worker_training_info':worker_training_info})
Esempio n. 2
0
def worker_internal_dashboard(request, worker_id):
    worker, bCreated = Worker.objects.get_or_create(
        session=None, worker=worker_id)
    stats = models_stats.worker_stats(worker)
    worker_contibutions = models_stats.worker_to_session_contributions(
        worker_id)

    return render_to_response(
        'mturk/dashboard/worker_internal_dashboard.html', {
            'worker': worker,
            'stats': stats,
            'contributions': worker_contibutions,
            'user': request.user
        })
Esempio n. 3
0
def worker_internal_dashboard(request, worker_id):
    worker, bCreated = Worker.objects.get_or_create(session=None,
                                                    worker=worker_id)
    stats = models_stats.worker_stats(worker)
    worker_contibutions = models_stats.worker_to_session_contributions(
        worker_id)

    return render_to_response(
        'mturk/dashboard/worker_internal_dashboard.html', {
            'worker': worker,
            'stats': stats,
            'contributions': worker_contibutions,
            'user': request.user
        })
Esempio n. 4
0
def worker_dashboard(request, worker_id):
    worker, bCreated = Worker.objects.get_or_create(session=None,
                                                    worker=worker_id)
    stats = models_stats.worker_stats(worker)
    worker_contibutions = models_stats.worker_to_session_contributions(
        worker_id)

    worker_training_info = WorkerTrainingProgress.objects.all().filter(
        worker=worker)

    return render_to_response(
        'mturk/dashboard/worker_dashboard.html', {
            'worker': worker,
            'stats': stats,
            'contributions': worker_contibutions,
            'worker_training_info': worker_training_info
        })