Removed print statements
This commit is contained in:
parent
677f92af68
commit
6228e7229b
@ -289,11 +289,9 @@ class vkSession(object):
|
|||||||
def get_user_name(self, user_id, case_name="gen"):
|
def get_user_name(self, user_id, case_name="gen"):
|
||||||
if user_id > 0:
|
if user_id > 0:
|
||||||
if self.db["users"].has_key(user_id):
|
if self.db["users"].has_key(user_id):
|
||||||
# print self.db["users"][user_id]
|
|
||||||
if self.db["users"][user_id].has_key(case_name):
|
if self.db["users"][user_id].has_key(case_name):
|
||||||
return self.db["users"][user_id][case_name]
|
return self.db["users"][user_id][case_name]
|
||||||
else:
|
else:
|
||||||
print self.db["users"][user_id], self.db["users"][user_id].keys()
|
|
||||||
return self.db["users"][user_id]["nom"]
|
return self.db["users"][user_id]["nom"]
|
||||||
else:
|
else:
|
||||||
return "no specified user"
|
return "no specified user"
|
||||||
@ -331,7 +329,7 @@ class vkSession(object):
|
|||||||
gids = "{0},".format(i["id"],)
|
gids = "{0},".format(i["id"],)
|
||||||
if not "ru" in languageHandler.getLanguage():
|
if not "ru" in languageHandler.getLanguage():
|
||||||
return
|
return
|
||||||
|
if ids != "":
|
||||||
users_genitive = self.vk.client.users.get(user_ids=ids, fields="first_name, last_name", name_case="gen")
|
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")
|
users_instrumental = self.vk.client.users.get(user_ids=ids, fields="first_name, last_name", name_case="ins")
|
||||||
for i in users_genitive:
|
for i in users_genitive:
|
||||||
|
Loading…
Reference in New Issue
Block a user