Prepare for size control of output file

This commit is contained in:
KnugiHK
2023-02-13 16:08:21 +08:00
parent 9178e5326b
commit 0bb99d59e0
2 changed files with 33 additions and 8 deletions
+8 -1
View File
@@ -458,7 +458,14 @@ def vcard(db, data):
print(f"Gathering vCards...({index + 1}/{total_row_number})", end="\r")
def create_html(data, output_folder, template=None, embedded=False, offline_static=False):
def create_html(
data,
output_folder,
template=None,
embedded=False,
offline_static=False,
maximum_size=None
):
if template is None:
template_dir = os.path.dirname(__file__)
template_file = "whatsapp.html"