2025.12.27 13:35:45 (cachyos.cmoser.eu)
This commit is contained in:
@@ -143,8 +143,8 @@ def import_builtin_pages_from_zip(zip: str | Path, user=None):
|
||||
return True
|
||||
except BuiltinPages.DoesNotExist:
|
||||
for slug, spec in data['pages'].items():
|
||||
with zf.open(spec['file'], "rt", encoding="utf-8") as ifile:
|
||||
content = ifile.read()
|
||||
with zf.open(spec['file']) as ifile:
|
||||
content = ifile.read().decode("utf-8")
|
||||
|
||||
Page.objects.create(slug=slug,
|
||||
title=spec['title'],
|
||||
|
||||
Reference in New Issue
Block a user