mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-26 07:51:31 +00:00
Fix the returning string for empty filter list
This commit is contained in:
@@ -400,7 +400,7 @@ def get_chat_condition(filter: Optional[List[str]], include: bool, columns: List
|
|||||||
Raises:
|
Raises:
|
||||||
ValueError: If the column count is invalid or an unsupported platform is provided.
|
ValueError: If the column count is invalid or an unsupported platform is provided.
|
||||||
"""
|
"""
|
||||||
if filter is not None:
|
if filter is not None and len(filter) > 0:
|
||||||
conditions = []
|
conditions = []
|
||||||
if len(columns) < 2 and jid is not None:
|
if len(columns) < 2 and jid is not None:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
|||||||
Reference in New Issue
Block a user