Removed print statements

This commit is contained in:
Manuel Cortez 2016-07-10 22:51:06 -05:00
parent 677f92af68
commit 6228e7229b

View File

@ -289,11 +289,9 @@ class vkSession(object):
def get_user_name(self, user_id, case_name="gen"):
if user_id > 0:
if self.db["users"].has_key(user_id):
# print self.db["users"][user_id]
if self.db["users"][user_id].has_key(case_name):
return self.db["users"][user_id][case_name]
else:
print self.db["users"][user_id], self.db["users"][user_id].keys()
return self.db["users"][user_id]["nom"]
else:
return "no specified user"
@ -331,7 +329,7 @@ class vkSession(object):
gids = "{0},".format(i["id"],)
if not "ru" in languageHandler.getLanguage():
return
if ids != "":
users_genitive = self.vk.client.users.get(user_ids=ids, fields="first_name, last_name", name_case="gen")
users_instrumental = self.vk.client.users.get(user_ids=ids, fields="first_name, last_name", name_case="ins")
for i in users_genitive: