Pi 4 months ago
parent
commit
e5d1cc1747
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rest/bar.py

+ 1 - 1
rest/bar.py

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