Skip to content

Commit

Permalink
Fix encoding for SQL engine2
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 3, 2022
1 parent 3d0db31 commit a36873d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
basedir = os.path.abspath(os.path.dirname(__file__))
# engine = create_engine('sqlite:///:memory:', echo=True)
db_path = 'sqlite:///' + os.path.join(basedir, '../jobs.db')
db_path = 'sqlite:///' + os.path.join(basedir, '../jobs.db') + '?charset=utf8mb4'
# engine = create_engine(db_path, echo=True)
engine = create_engine(db_path, echo=False)

Expand All @@ -30,4 +30,4 @@ class User(Base):
password = Column(String)
tele_id = Column(Integer)
last_job = Column(Integer)
category = Column(String)
category = Column(String)

0 comments on commit a36873d

Please sign in to comment.