From b8e649c6ac98ce1cbe970fdd3a01114fc0d4c118 Mon Sep 17 00:00:00 2001 From: Kun Fang Date: Mon, 16 Sep 2024 23:47:14 -0400 Subject: [PATCH] fix: replace "print" with "self.stdout.write" Refs: #157 --- .../apps/instruments/management/commands/import_languages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web-app/django/VIM/apps/instruments/management/commands/import_languages.py b/web-app/django/VIM/apps/instruments/management/commands/import_languages.py index 63796a1..ccb100c 100644 --- a/web-app/django/VIM/apps/instruments/management/commands/import_languages.py +++ b/web-app/django/VIM/apps/instruments/management/commands/import_languages.py @@ -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,