Browse Source

add missing file

Daniel Sheffield 4 tháng trước cách đây
mục cha
commit
208f92e23f
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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