Browse Source

add missing file

Daniel Sheffield 4 months ago
parent
commit
208f92e23f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      rest/bar.py

+ 6 - 0
rest/bar.py

@@ -0,0 +1,6 @@
+from barcode import EAN13
+
+def get_bar_code(meta):
+    if meta['type'] == 'EAN13':
+        return EAN13(meta['content']).render()
+    return None