Pi hai 4 meses
pai
achega
e5d1cc1747
Modificáronse 1 ficheiros con 1 adicións e 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