Browse Source

givecoin fix
.

tBKwtWS 7 năm trước cách đây
mục cha
commit
f28d3283f9
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 2 2
      irc/commands/games.py
  2. 1 1
      webgui/webgui/settings.py

+ 2 - 2
irc/commands/games.py

@@ -166,7 +166,7 @@ def do_command(self, connection, event):
                     connection.privmsg(replyto, "Insuficcient XP, you need at least 10.")
                 else:
                     self.db.run("UPDATE users SET level=level+1, xp_spent=xp_spent+10 WHERE LOWER(name)='" + user + "' AND network='" + self.network + "'")
-                    self.sd.run("UPDATE users SET coin=coin+0.3 WHERE level>0")
+                    self.db.run("UPDATE users SET coin=coin+0.3 WHERE level>0")
             elif len(command.split()) == 2:
                 try:
                     levels = int(command.split()[1])
@@ -180,7 +180,7 @@ def do_command(self, connection, event):
                 else:
                     print("UPDATE users SET level=level+" + str(levels) + ", xp_spent=xp_spent+" + str(levels * 10) + " WHERE LOWER(name)='" + user + "' AND network='" + self.network + "'")
                     self.db.run("UPDATE users SET level=level+" + str(levels) + ", xp_spent=xp_spent+" + str(levels * 10) + " WHERE LOWER(name)='" + user + "' AND network='" + self.network + "'")
-                    self.sd.run("UPDATE users SET coin=coin+" + str(0.3 * levels) + " WHERE level>0")
+                    self.db.run("UPDATE users SET coin=coin+" + str(0.3 * levels) + " WHERE level>0")
             else:
                 connection.privmsg(replyto, "Too many arguments. For help type " + blue + self.helpchar + "levelup " + reset + ".")
     

+ 1 - 1
webgui/webgui/settings.py

@@ -109,7 +109,7 @@ AUTH_PASSWORD_VALIDATORS = [
 
 LANGUAGE_CODE = 'en-us'
 
-TIME_ZONE = 'UTC'
+TIME_ZONE = 'CET'
 
 USE_I18N = True