Add missing descriptions to capabilities

This commit is contained in:
Gabriel Augendre 2022-10-30 16:11:57 +01:00
parent 0c7ff80a59
commit 920fbbeea4

View file

@ -44,6 +44,11 @@ class Command(BaseCommand):
spell = True
name = name.replace("*", "")
name = name.strip()
description = (
card.find_element(By.CLASS_NAME, "field--name-description")
.text.strip()
.replace("", "'")
)
try:
capability, _ = Capability.objects.update_or_create(
name=name,
@ -52,6 +57,7 @@ class Command(BaseCommand):
"path": path,
"limited": limited,
"spell": spell,
"description": description,
"url": "https://www.co-drs.org/fr/jeu/capacites",
},
)