This commit is contained in:
Joscha 2018-08-06 15:34:54 +00:00
parent 94b0ce78ed
commit 7da407310c
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,7 @@ from plusone import PointsDB
async def add_points(db, room, points): async def add_points(db, room, points):
for (nick, amount) in points: for (nick, amount) in points:
print(f"&{room}: {mention(nick, ping=False)} + {amount}") #print(f"&{room}: {mention(nick, ping=False)} + {amount}")
await db.add_points(room, nick, amount) await db.add_points(room, nick, amount)
def main(to_dbfile, from_dbfile, room): def main(to_dbfile, from_dbfile, room):

View file

@ -38,7 +38,6 @@ class PointsDB(yaboli.Database):
@yaboli.operation @yaboli.operation
def points_of(self, db, room, nick): def points_of(self, db, room, nick):
normalized_nick = normalize(nick) normalized_nick = normalize(nick)
print(nick, normalized_nick, room)
res = db.execute(( res = db.execute((
"SELECT points FROM points " "SELECT points FROM points "
"WHERE normalized_nick=? AND room=?" "WHERE normalized_nick=? AND room=?"