fixes for soft_barcodes

workspace
Brendan Howell 4 years ago
parent 7108240781
commit 60d593c890

@ -175,7 +175,8 @@ class Audio(Bureau):
prn.textln(title) prn.textln(title)
prn.textln(url) prn.textln(url)
prn.soft_barcode("CODE128", "AUp." + shortcode) prn.soft_barcode("code128", "AUp." + shortcode)
prn.print_and_feed()
#TODO: cut #TODO: cut
prn.close() prn.close()

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

Loading…
Cancel
Save