Explorar o código

add missing file

Daniel Sheffield hai 4 meses
pai
achega
208f92e23f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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