Convert API key to uppercase on input
[mevemon] / package / src / ui / fremantle / gui.py
index a436e71..8b8d1f7 100644 (file)
@@ -185,7 +185,8 @@ class BaseUI():
         while not valid_credentials:
             if result == gtk.RESPONSE_OK:
                 uid = uidEntry.get_text()
-                api_key = apiEntry.get_text()
+                # auth() fails if api_key has lower-case characters
+                api_key = apiEntry.get_text().upper()
             
                 try:
                     validation.uid(uid)
@@ -476,7 +477,6 @@ class CharacterSheetUI(BaseUI):
 
 
     def update_live_sp(self):
-        print 'tick'
         self.live_sp_val = self.live_sp_val + self.spps * self.UPDATE_INTERVAL
         self.live_sp.set_label("<small><b>Total SP:</b> %s</small>" %
                                 util.comma(int(self.live_sp_val)))