mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-21 05:24:38 +00:00
Fixed the wrong boolean value
This commit is contained in:
@@ -13,7 +13,7 @@ class ContactsFromVCards:
|
|||||||
self.contact_mapping = []
|
self.contact_mapping = []
|
||||||
|
|
||||||
def is_empty(self):
|
def is_empty(self):
|
||||||
return len(self.contact_mapping) > 0
|
return self.contact_mapping == []
|
||||||
|
|
||||||
def load_vcf_file(self, vcf_file_path: str, default_country_code: str):
|
def load_vcf_file(self, vcf_file_path: str, default_country_code: str):
|
||||||
self.contact_mapping = read_vcards_file(vcf_file_path, default_country_code)
|
self.contact_mapping = read_vcards_file(vcf_file_path, default_country_code)
|
||||||
|
|||||||
Reference in New Issue
Block a user