Merge pull request #1653 from datendelphin/patch-1

path was doubled
This commit is contained in:
Yohan Boniface 2024-02-27 11:03:19 +01:00 committed by GitHub
commit d48aeae6bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,6 +62,6 @@ class Command(BaseCommand):
if path.name != self.path.name: # Subfolders only
picto.category = path.name
picto.attribution = self.attribution
with (path / filename).open("rb") as f:
with (filename).open("rb") as f:
picto.pictogram.save(filename.name, File(f), save=True)
self.stdout.write(f"✔ Imported pictogram {filename}.")