Skip to content

Commit

Permalink
resolves #120
Browse files Browse the repository at this point in the history
  • Loading branch information
gchem1se committed Apr 27, 2024
1 parent e3f5837 commit 5181683
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/wa_crypt_tools/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ def header_info(header):
string += str("Backup version: {}\n".format(header.info.backup_version))
#string += str("Size of the backup file: {}".format(header.backup_export_file_size))
features = [n for n in [*range(5,38), 39] if getattr(header.info, "f_" + str(n)) == True]
string += str("Features: {}\n".format(features))
string += str("Max feature number: {}\n".format(max(features)))
if len(features) > 0:
string += str("Features: {}\n".format(features))
string += str("Max feature number: {}\n".format(max(features)))
else:
string += str("No feature table found (not a msgstore DB or very old)\n")

return string

0 comments on commit 5181683

Please sign in to comment.