from django.urls import path from games import views urlpatterns = [ path("", views.index, name="index"), path( "session/list/recent", views.list_sessions, {"filter": "recent"}, name="list_sessions_recent", ), path("game/add", views.add_game, name="add_game"), path("platform/add", views.add_platform, name="add_platform"), path("session/add", views.add_session, name="add_session"), path( "session/add/for-purchase/", views.add_session, name="add_session_for_purchase", ), path( "session/add/from-game/", views.new_session_from_existing_session, {"template": "view_game.html#session-info"}, name="view_game_start_session_from_session", ), path( "session/add/from-list/", views.new_session_from_existing_session, {"template": "list_sessions.html#session-row"}, name="list_sessions_start_session_from_session", ), path( "session/end/from-game/", views.end_session, {"template": "view_game.html#session-info"}, name="view_game_end_session", ), path( "session/end/from-list/", views.end_session, {"template": "list_sessions.html#session-row"}, name="list_sessions_end_session", ), path( "session//delete", views.delete_session, name="delete_session", ), path( "purchase//delete", views.delete_purchase, name="delete_purchase", ), path("purchase/add", views.add_purchase, name="add_purchase"), path( "purchase/add/for-edition/", views.add_purchase, name="add_purchase_for_edition", ), path( "related-purchase-by-edition", views.related_purchase_by_edition, name="related_purchase_by_edition", ), path("edition/add", views.add_edition, name="add_edition"), path( "edition/add/for-game/", views.add_edition, name="add_edition_for_game", ), path("edition//edit", views.edit_edition, name="edit_edition"), path("game//view", views.view_game, name="view_game"), path("game//edit", views.edit_game, name="edit_game"), path("platform//edit", views.edit_platform, name="edit_platform"), path("device/add", views.add_device, name="add_device"), path("session//edit", views.edit_session, name="edit_session"), path("purchase//edit", views.edit_purchase, name="edit_purchase"), path("session/list", views.list_sessions, name="list_sessions"), path( "session/list/by-purchase/", views.list_sessions, {"filter": "purchase"}, name="list_sessions_by_purchase", ), path( "session/list/by-platform/", views.list_sessions, {"filter": "platform"}, name="list_sessions_by_platform", ), path( "session/list/by-game/", views.list_sessions, {"filter": "game"}, name="list_sessions_by_game", ), path( "session/list/by-edition/", views.list_sessions, {"filter": "edition"}, name="list_sessions_by_edition", ), path( "session/list/by-ownership/", views.list_sessions, {"filter": "ownership_type"}, name="list_sessions_by_ownership_type", ), path("stats/", views.stats, name="stats_current_year"), path( "stats/", views.stats, name="stats_by_year", ), ]