update bug1.0
This commit is contained in:
@@ -134,7 +134,7 @@ class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
docs = Path(settings.PROJECT_ROOT) / "docs"
|
||||
mathbti_path = docs / "old_scripts" / "seed_mathbti.json"
|
||||
story_path = docs / "数学少年线_story.json"
|
||||
story_path = docs / "信仰者线_story.json"
|
||||
videos_path = docs / "old_scripts" / "seed_videos.json"
|
||||
if not mathbti_path.exists() or not story_path.exists() or not videos_path.exists():
|
||||
raise CommandError("缺少 docs 中的初始内容文件")
|
||||
@@ -167,7 +167,7 @@ class Command(BaseCommand):
|
||||
if errors:
|
||||
raise CommandError("; ".join(errors))
|
||||
flagship, _ = Story.objects.update_or_create(
|
||||
slug="believer-math-teen",
|
||||
slug="believer",
|
||||
defaults={
|
||||
"title": story_document["title"],
|
||||
"summary": story_document.get("description", ""),
|
||||
|
||||
Reference in New Issue
Block a user