Skip to content

Commit

Permalink
fix: replace "print" with "self.stdout.write"
Browse files Browse the repository at this point in the history
Refs: #157
  • Loading branch information
kunfang98927 committed Sep 17, 2024
1 parent 719e930 commit b8e649c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def handle(self, *args, **options):
en_label = item["languageLabel"]["value"]
autonym = item["autonym"]["value"]

print(wikidata_code, "-", wikidata_id, "-", en_label, "-", autonym)
self.stdout.write(
wikidata_code, "-", wikidata_id, "-", en_label, "-", autonym
)

Language.objects.update_or_create(
wikidata_code=wikidata_code,
Expand Down

0 comments on commit b8e649c

Please sign in to comment.