|
|
@ -259,7 +259,7 @@ class PublicRelations(Bureau):
|
|
|
|
photo = self.send("PX", "photo")["photo"]
|
|
|
|
photo = self.send("PX", "photo")["photo"]
|
|
|
|
media = self.masto.media_post(photo)
|
|
|
|
media = self.masto.media_post(photo)
|
|
|
|
post = self.masto.status_post("", media_ids=[media])
|
|
|
|
post = self.masto.status_post("", media_ids=[media])
|
|
|
|
self.log.debug(str(post))
|
|
|
|
#self.log.debug(str(post))
|
|
|
|
|
|
|
|
|
|
|
|
@add_command("tootline", "Print Recent Toots")
|
|
|
|
@add_command("tootline", "Print Recent Toots")
|
|
|
|
def tootline(self, data=None):
|
|
|
|
def tootline(self, data=None):
|
|
|
@ -308,7 +308,7 @@ class PublicRelations(Bureau):
|
|
|
|
im.thumbnail((576, 576), PIL.Image.ANTIALIAS)
|
|
|
|
im.thumbnail((576, 576), PIL.Image.ANTIALIAS)
|
|
|
|
prn.image(im, impl="bitImageColumn")
|
|
|
|
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.barcode("PRmad." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
prn.text("\r\n\r\n")
|
|
|
|
prn.text("\r\n\r\n")
|
|
|
|
|
|
|
|
|
|
|
|