Removed unneeded prints
This commit is contained in:
parent
277b10b155
commit
bbef34d125
@ -315,7 +315,6 @@ class vkSession(object):
|
|||||||
attachments = ""
|
attachments = ""
|
||||||
if len(attachments_list) > 0:
|
if len(attachments_list) > 0:
|
||||||
attachments = self.upload_attachments(attachments_list)
|
attachments = self.upload_attachments(attachments_list)
|
||||||
print(attachments)
|
|
||||||
# VK generally defines all kind of messages under "text", "message" or "body" so let's try with all of those
|
# VK generally defines all kind of messages under "text", "message" or "body" so let's try with all of those
|
||||||
possible_message_keys = ["text", "message", "body"]
|
possible_message_keys = ["text", "message", "body"]
|
||||||
for i in possible_message_keys:
|
for i in possible_message_keys:
|
||||||
@ -330,7 +329,6 @@ class vkSession(object):
|
|||||||
# After modifying everything, let's update the post arguments if needed.
|
# After modifying everything, let's update the post arguments if needed.
|
||||||
if len(attachments) > 0:
|
if len(attachments) > 0:
|
||||||
post_arguments.update(attachments=attachments)
|
post_arguments.update(attachments=attachments)
|
||||||
print(post_arguments)
|
|
||||||
# Determines the correct functions to call here.
|
# Determines the correct functions to call here.
|
||||||
parent_endpoint = getattr(self.vk.client, parent_endpoint)
|
parent_endpoint = getattr(self.vk.client, parent_endpoint)
|
||||||
endpoint = getattr(parent_endpoint, child_endpoint)
|
endpoint = getattr(parent_endpoint, child_endpoint)
|
||||||
@ -372,4 +370,4 @@ class vkSession(object):
|
|||||||
id = r["doc"]["id"]
|
id = r["doc"]["id"]
|
||||||
owner_id = r["doc"]["owner_id"]
|
owner_id = r["doc"]["owner_id"]
|
||||||
local_attachments += "doc{0}_{1},".format(owner_id, id)
|
local_attachments += "doc{0}_{1},".format(owner_id, id)
|
||||||
return local_attachments
|
return local_attachments
|
Loading…
Reference in New Issue
Block a user