mirror of
https://git.cmoser.eu/tinytools/django-tinywiki.git
synced 2026-02-04 06:06:33 +01:00
License change to 0-BSD
This commit is contained in:
@@ -63,7 +63,7 @@ class Command(BaseCommand):
|
||||
if has_images:
|
||||
import_builtin_images_from_zip(filename, user)
|
||||
else:
|
||||
with open(file, "rt", encoding="utf-8") as json_file:
|
||||
with open(filename, "rt", encoding="utf-8") as json_file:
|
||||
try:
|
||||
json_data = json.loads(json_file.read())
|
||||
except Exception:
|
||||
@@ -76,6 +76,6 @@ class Command(BaseCommand):
|
||||
raise CommandError("Not a valid json file!")
|
||||
|
||||
if has_images:
|
||||
import_builtin_images(file)
|
||||
import_builtin_images(filename)
|
||||
if has_pages:
|
||||
import_builtin_pages(file)
|
||||
import_builtin_pages(filename)
|
||||
|
||||
Reference in New Issue
Block a user