Skip to content

Commit

Permalink
fixed utf-8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
smaury committed Nov 13, 2021
1 parent 0aacf16 commit 9f2e641
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webtech/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# DON'T EDIT THIS FILE
__version__ = "1.3"
__version__ = "1.3.1"
4 changes: 2 additions & 2 deletions webtech/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def merge_partial_wappalyzer_database():
This helper function merges a partial wappalyzer db with the other ones.
"""

with open(WAPPALYZER_DATABASE_FILE, 'r+') as f1:
with open(os.path.join(DATA_DIR,"temp.json")) as f2:
with open(WAPPALYZER_DATABASE_FILE, 'r+', encoding='utf-8') as f1:
with open(os.path.join(DATA_DIR,"temp.json"), 'r', encoding='utf-8') as f2:
current = json.load(f1)
temp = {"apps": json.load(f2)}
f1.seek(0)
Expand Down
3 changes: 3 additions & 0 deletions webtech_example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env python3
import webtech

# make sure to have the latest db version
webtech.database.update_database(force=True)

# you can use options, same as from the command line
wt = webtech.WebTech(options={'json': True})

Expand Down

0 comments on commit 9f2e641

Please sign in to comment.