forked from mattsta/signal-backup
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,7 +212,7 @@ def main( | |
paginate = int(1e20) | ||
|
||
if html_output: | ||
html_.prep_html(dest) | ||
html.prep_html(dest) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
carderne
Author
Owner
|
||
for key, messages in chat_dict.items(): | ||
name = contacts[key].name | ||
# some contact names are None | ||
|
@@ -233,12 +233,14 @@ def main( | |
print(msg.to_md(), file=md_f) | ||
print(msg.dict_str(), file=js_f) | ||
if html_output: | ||
ht = html_.create_html(name=name, messages=messages, msgs_per_page=paginate) | ||
ht = html.create_html( | ||
name=name, messages=messages, msgs_per_page=paginate | ||
) | ||
print(ht, file=ht_f) | ||
finally: | ||
md_f.close() | ||
js_f.close() | ||
if html_output: | ||
if ht_f: | ||
ht_f.close() | ||
|
||
secho("Done!", fg=colors.GREEN) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oh yeah, my bad. Accidentally committed my local change.
Speaking of which, when I try to debug the repo in IntelliJ, I get conflicts because
html
andlogging
are well known Python libraries. For example, when beautifulsoup importshtml
, my Python executable pullssigexport/html
for some reason.I don't know how to avoid the conflicts, but you seem to have no problem with those. Maybe you have an idea off the top of your head?
Perhaps, I need to try this in VS Code.