Pi 4 месяцев назад
Родитель
Сommit
e5d1cc1747
1 измененных файлов с 1 добавлено и 1 удалено
  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