mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Add missing descriptions to capabilities
This commit is contained in:
parent
0c7ff80a59
commit
920fbbeea4
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue