Explorar el Código

add missing file

Daniel Sheffield hace 4 meses
padre
commit
208f92e23f
Se han modificado 1 ficheros con 6 adiciones y 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