From 8069882dc51a8e9f72c72d14ef139cb393d91a4e Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 13 Jul 2024 21:54:13 +0800 Subject: [PATCH] Update variable name for filter_empty --- Whatsapp_Chat_Exporter/__main__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Whatsapp_Chat_Exporter/__main__.py b/Whatsapp_Chat_Exporter/__main__.py index 4447a46..03d40cb 100644 --- a/Whatsapp_Chat_Exporter/__main__.py +++ b/Whatsapp_Chat_Exporter/__main__.py @@ -262,7 +262,7 @@ def main(): ) parser.add_argument( "--dont-filter-empty", - dest="disable_filter_empty", + dest="filter_empty", default=True, action='store_false', help="By default, the exporter will not render chats with no valid message. Setting this flag will cause the exporter to render those." @@ -494,7 +494,7 @@ def main(): args.offline, args.size, args.no_avatar, - args.disable_filter_empty + args.filter_empty ) else: print( @@ -531,7 +531,7 @@ def main(): args.offline, args.size, args.no_avatar, - args.disable_filter_empty + args.filter_empty ) for file in glob.glob(r'*.*'): shutil.copy(file, args.output) @@ -545,11 +545,11 @@ def main(): args.offline, args.size, args.no_avatar, - args.disable_filter_empty + args.filter_empty ) if args.json and not args.import_json: - if args.disable_filter_empty: + if args.filter_empty: data = {k: v for k, v in data.items() if not chat_is_empty(v)} if contact_store.is_empty():