Pi il y a 4 mois
Parent
commit
e5d1cc1747
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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