|
|
|
@ -178,7 +178,7 @@ class PublicRelations(Bureau):
|
|
|
|
|
|
|
|
|
|
tw_shortcode = self.short_tweet_id(t["id_str"])
|
|
|
|
|
#prn.barcode("PRtwd." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
|
prn.soft_barcode("CODE128", "PRtwd." + tw_shortcode)
|
|
|
|
|
prn.soft_barcode("code128", "PRtwd." + tw_shortcode)
|
|
|
|
|
prn.ln(2)
|
|
|
|
|
|
|
|
|
|
prn.cut()
|
|
|
|
@ -217,13 +217,13 @@ class PublicRelations(Bureau):
|
|
|
|
|
tw_shortcode = self.short_tweet_id(tweet["id_str"])
|
|
|
|
|
prn.text("retweet\r\n")
|
|
|
|
|
#prn.barcode("PRtwrt." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
|
prn.soft_barcode("CODE128", "PRtwrt." + tw_shortcode)
|
|
|
|
|
prn.soft_barcode("code128", "PRtwrt." + tw_shortcode)
|
|
|
|
|
prn.text("like\r\n")
|
|
|
|
|
#prn.barcode("PRtwlk." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
|
prn.soft_barcode("CODE128", "PRtwlk." + tw_shortcode)
|
|
|
|
|
prn.soft_barcode("code128", "PRtwlk." + tw_shortcode)
|
|
|
|
|
prn.text("\r\n\r\n")
|
|
|
|
|
#prn.barcode("PRtwre." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
|
prn.soft_barcode("CODE128", "PRtwre." + tw_shortcode)
|
|
|
|
|
prn.soft_barcode("code128", "PRtwre." + tw_shortcode)
|
|
|
|
|
prn.ln(2)
|
|
|
|
|
prn.cut()
|
|
|
|
|
prn.close()
|
|
|
|
@ -333,7 +333,7 @@ class PublicRelations(Bureau):
|
|
|
|
|
|
|
|
|
|
tw_shortcode = self.short_tweet_id(str(t["id"]))
|
|
|
|
|
#prn.barcode("PRmad." + tw_shortcode, "CODE128", function_type="B")
|
|
|
|
|
prn.soft_barcode("CODE128", "PRmad." + tw_shortcode)
|
|
|
|
|
prn.soft_barcode("code128", "PRmad." + tw_shortcode)
|
|
|
|
|
|
|
|
|
|
notifications = self.masto.notifications(since_id=self.last_mast_notif)
|
|
|
|
|
if len(notifications) > 0:
|
|
|
|
|