Skip to content

Commit

Permalink
Correct ConfigParser change + SyntaxWarning (see #43)
Browse files Browse the repository at this point in the history
  • Loading branch information
t4d committed Apr 3, 2024
1 parent 1d41250 commit b23b921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/confparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, Confile=None):
self.config = configparser.ConfigParser()

with open(Confile, 'r', encoding='utf-8') as f:
self.config.readfp(f)
self.config.read_file(f)

# search strings
self.SearchKeywords = self.config['SEARCH']['SearchKeywords']
Expand Down
2 changes: 1 addition & 1 deletion utils/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def SQLiteVerifyEntry(self, TABLEname, Domain):
res = self.cur.execute('SELECT EXISTS (SELECT 1 FROM '+TABLEname+' WHERE Domain='+"\""+Domain+"\""+' LIMIT 1);')
fres = res.fetchone()[0]
# 0ô
if fres is not 0:
if fres != 0:
return 1
else:
return 0
Expand Down

0 comments on commit b23b921

Please sign in to comment.