mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-05 14:23:53 +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
|
spell = True
|
||||||
name = name.replace("*", "")
|
name = name.replace("*", "")
|
||||||
name = name.strip()
|
name = name.strip()
|
||||||
|
description = (
|
||||||
|
card.find_element(By.CLASS_NAME, "field--name-description")
|
||||||
|
.text.strip()
|
||||||
|
.replace("’", "'")
|
||||||
|
)
|
||||||
try:
|
try:
|
||||||
capability, _ = Capability.objects.update_or_create(
|
capability, _ = Capability.objects.update_or_create(
|
||||||
name=name,
|
name=name,
|
||||||
|
@ -52,6 +57,7 @@ class Command(BaseCommand):
|
||||||
"path": path,
|
"path": path,
|
||||||
"limited": limited,
|
"limited": limited,
|
||||||
"spell": spell,
|
"spell": spell,
|
||||||
|
"description": description,
|
||||||
"url": "https://www.co-drs.org/fr/jeu/capacites",
|
"url": "https://www.co-drs.org/fr/jeu/capacites",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue