initial commit
This commit is contained in:
9
scanner/utils.py
Normal file
9
scanner/utils.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from scanner.enums import CodeType
|
||||
|
||||
|
||||
def guess_code_type(string_value: str) -> CodeType:
|
||||
if string_value.isdigit():
|
||||
return CodeType.BARCODE
|
||||
if string_value:
|
||||
return CodeType.QRCODE
|
||||
return CodeType.INVALID
|
||||
Reference in New Issue
Block a user