diff options
author | John Smith <mrdoctorwho@gmail.com> | 2016-12-08 22:43:19 +0300 |
---|---|---|
committer | John Smith <mrdoctorwho@gmail.com> | 2016-12-08 22:43:19 +0300 |
commit | 102ee9137df8d50127525e2195d9d6dcc57f481b (patch) | |
tree | 071965b658b228a156652c45b42a0b586c391ea6 | |
parent | cb4e9253d91be10f0f9bbcc85834c48f4e0a5a6c (diff) |
Fix mod_xhtml once again (#141)
-rw-r--r-- | modules/mod_iq_vcard.py | 1 | ||||
-rw-r--r-- | modules/mod_xhtml.py | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/modules/mod_iq_vcard.py b/modules/mod_iq_vcard.py index 5be4457..d1316de 100644 --- a/modules/mod_iq_vcard.py +++ b/modules/mod_iq_vcard.py @@ -95,7 +95,6 @@ def buildVcard(data, user): """ vcard = xmpp.Node("vCard", {"xmlns": xmpp.NS_VCARD}) for key, value in VCARD_TEMPLATE.iteritems(): - print "key",key value = data.get(VCARD_FIELDS[key], value) if key == KEY_PHOTO: photo = vcard.setTag(KEY_PHOTO) diff --git a/modules/mod_xhtml.py b/modules/mod_xhtml.py index a635d44..de7ea81 100644 --- a/modules/mod_xhtml.py +++ b/modules/mod_xhtml.py @@ -31,9 +31,8 @@ def sendPhoto(user, data, type, address, mType): urlencode=False)[0]) id = user.vk.method("photos.saveMessagesPhoto", response) - print id if id: - photo = "photo%(owner_id)d_%(id)d" % id[0] + photo = "photo%(owner_id)d_%(id)s" % id[0] user.vk.sendMessage("", address, mType, {"attachment": photo}) logger.debug("sendPhoto: image was successfully sent by user %s" % user.source) answer = _("Your image was successfully sent.") |