From 1e2c58d2c1ef353a17d3e0c108de27ab69326041 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Sat, 5 Feb 2022 12:27:44 +0100
Subject: [PATCH] Fix logo argument

---
 pyVcardToQr/pyVcardToQr.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyVcardToQr/pyVcardToQr.py b/pyVcardToQr/pyVcardToQr.py
index 65509e1..5513170 100644
--- a/pyVcardToQr/pyVcardToQr.py
+++ b/pyVcardToQr/pyVcardToQr.py
@@ -21,7 +21,7 @@ def getCard(first, last, data):
     return card
 
 
-def genQr(data, output, logo=None, colors=('black', 'white'), logo_path=None):
+def genQr(data, output, colors=('black', 'white'), logo_path=None):
     if logo_path is not None:
         logo = Image.open(logo_path)
         # taking base width
@@ -66,7 +66,7 @@ def main(first, last, output, data, logo, colors):
     card = getCard(first, last, data)
     contents = card.serialize()
     print(contents)
-    genQr(contents, output, logo, colors)
+    genQr(contents, output, colors, logo)
 
 
 if __name__ == '__main__':
-- 
GitLab