"""Urls for the stats app, this should be the namespace "stats" """
from django.conf.urls import patterns, include, url

import stats.views as views

urlpatterns = patterns('',
    url(r"^(?P<course>[a-z0-9-]+)/(?P<lesson>[a-z0-9-]+)$", views.lesson, name="lesson"),
    url(r"^~answers/(?P<task>[0-9]+)$", views.wrong, name="wrong"),
    url(r"^(?P<course>[a-z0-9-]+)/(?P<lesson>[a-z0-9-]+)/user/(?P<name>[0-9a-zA-Z_@.+-]+)$", views.user, name="user"),
    
    url(r"^csv/(?P<course>[a-z0-9-]+)/(?P<lesson>[a-z0-9-]+)$", views.csv_lesson, name="csv_lesson"),
    url(r"^csv/(?P<course>[a-z0-9-]+)/(?P<lesson>[a-z0-9-]+)/users$",views.csv_users, name="csv_users"),
)
