Compare commits

...

1 Commits

Author SHA1 Message Date
bc5f1d21c7
Use readline instead of read
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-08-23 13:18:59 +02:00

View File

@ -23,7 +23,7 @@ def read_qrcode(file) -> str:
Peut être combiné avec zbar pour directement lire le contenu du QRCode.
"""
with file:
content = file.read()
content = file.readline()
content = content.replace('\n', '')
return content