mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-06 19:35:13 +02:00
26 lines
410 B
Python
26 lines
410 B
Python
|
|
from django.urls import path
|
||
|
|
|
||
|
|
|
||
|
|
class ProjectStore:
|
||
|
|
def archive(self, ids):
|
||
|
|
return None
|
||
|
|
|
||
|
|
|
||
|
|
project_store = ProjectStore()
|
||
|
|
|
||
|
|
|
||
|
|
def check_membership(user_id, project_id):
|
||
|
|
return True
|
||
|
|
|
||
|
|
|
||
|
|
def bulk_archive(request):
|
||
|
|
ids = request.POST["ids"]
|
||
|
|
check_membership(request.user.id, ids[0])
|
||
|
|
project_store.archive(ids)
|
||
|
|
return None
|
||
|
|
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
path("projects/archive/", bulk_archive),
|
||
|
|
]
|