From 8c1b8f4217af24949f8081ba098141bdedc7fe03 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Mon, 30 Apr 2018 02:48:54 +0200 Subject: [PATCH] convert int post ids to string --- screenless/bureau/publicrelations/publicrelations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 02c29c5..7a81afa 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -259,7 +259,7 @@ class PublicRelations(Bureau): photo = self.send("PX", "photo")["photo"] media = self.masto.media_post(photo) post = self.masto.status_post("", media_ids=[media]) - self.log.debug(str(post)) + #self.log.debug(str(post)) @add_command("tootline", "Print Recent Toots") def tootline(self, data=None): @@ -308,7 +308,7 @@ class PublicRelations(Bureau): im.thumbnail((576, 576), PIL.Image.ANTIALIAS) prn.image(im, impl="bitImageColumn") - tw_shortcode = self.short_tweet_id(t.id) + tw_shortcode = self.short_tweet_id(str(t["id"])) prn.barcode("PRmad." + tw_shortcode, "CODE128", function_type="B") prn.text("\r\n\r\n")