merge seeds and crawls apps

This commit is contained in:
Nick Sweeting
2024-11-18 19:23:14 -08:00
parent 4c25e90378
commit 65afd405b1
15 changed files with 168 additions and 224 deletions

View File

@@ -10,8 +10,7 @@ from django.contrib.auth import get_user_model
from ninja import Router, Schema
from core.models import Snapshot
from crawls.models import Crawl
from seeds.models import Seed
from crawls.models import Seed, Crawl
from .auth import API_AUTH_METHODS
@@ -19,7 +18,7 @@ router = Router(tags=['Crawl Models'], auth=API_AUTH_METHODS)
class SeedSchema(Schema):
TYPE: str = 'seeds.models.Seed'
TYPE: str = 'crawls.models.Seed'
id: UUID
abid: str
@@ -60,7 +59,7 @@ def get_seed(request, seed_id: str):
class CrawlSchema(Schema):
TYPE: str = 'core.models.Crawl'
TYPE: str = 'crawls.models.Crawl'
id: UUID
abid: str