summaryrefslogtreecommitdiff
path: root/queries.py
diff options
context:
space:
mode:
Diffstat (limited to 'queries.py')
-rw-r--r--queries.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries.py b/queries.py
index de4895e..1e6c3cc 100644
--- a/queries.py
+++ b/queries.py
@@ -15,6 +15,6 @@ async def load_queries(path):
# load from queries/
queryfiles = glob.glob(path + "/*.sql")
for fp in queryfiles:
- with open(fp, "r") as qfile:
+ with open(fp, "r", encoding="utf-8-sig") as qfile:
name = os.path.splitext(os.path.basename(fp))[0]
queries[name] = qfile.read()