Skip to content

Commit 2160c68

Browse files
Update help text in management command for self-explanatory clarity.
1 parent 364a8f2 commit 2160c68

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

challenge/management/commands/self-explanatory.py renamed to challenge/management/commands/populate_challenges.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
from challenge.models import Challenge
55

66
class Command(BaseCommand):
7-
help = "Populate challenge data from challenge/challenge.json"
7+
help = (
8+
"Reads challenge data from 'challenge/challenge.json' and populates the "
9+
"Challenge table in the database. Uses get_or_create to prevent duplicates "
10+
"and handles JSON errors gracefully."
11+
)
812

913
def handle(self, *args, **options):
1014
file_path = os.path.join('challenge', 'challenge.json')

0 commit comments

Comments
 (0)