Pi hace 4 meses
padre
commit
e5d1cc1747
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rest/bar.py

+ 1 - 1
rest/bar.py

@@ -8,6 +8,6 @@ BARCODE_MAP = {
 def get_bar_code(meta):
     f = BARCODE_MAP.get(meta['format'], None)
     if f is not None:
-        return EAN13(meta['content']).render()
+        return f(meta['content']).render()
 
     return None