remove sqlite specific test to skip unicode encoding
This commit is contained in:
parent
5982df0b04
commit
2e970baa82
|
@ -1769,10 +1769,7 @@ class Database:
|
||||||
|
|
||||||
def insertPlayer(self, name, site_id):
|
def insertPlayer(self, name, site_id):
|
||||||
result = None
|
result = None
|
||||||
if self.backend == self.SQLITE:
|
_name = Charset.to_db_utf8(name)
|
||||||
_name = name
|
|
||||||
else:
|
|
||||||
_name = Charset.to_db_utf8(name)
|
|
||||||
c = self.get_cursor()
|
c = self.get_cursor()
|
||||||
q = "SELECT name, id FROM Players WHERE siteid=%s and name=%s"
|
q = "SELECT name, id FROM Players WHERE siteid=%s and name=%s"
|
||||||
q = q.replace('%s', self.sql.query['placeholder'])
|
q = q.replace('%s', self.sql.query['placeholder'])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user