mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
hotfix: fixed qr code parsing
This commit is contained in:
parent
3fbc67c49b
commit
3b2b23b8d9
@ -8,4 +8,4 @@ lam2 = ("LibAddonMenu-2.0", "https://www.esoui.com/downloads/dl7/LibAddonMenu-2.
|
|||||||
fishyqr = ("FishyQR", "https://github.com/fishyboteso/FishyQR/releases/download/v1.2.0/FishyQR.zip", 120)
|
fishyqr = ("FishyQR", "https://github.com/fishyboteso/FishyQR/releases/download/v1.2.0/FishyQR.zip", 120)
|
||||||
libgps = ("LibGPS", "https://cdn.esoui.com/downloads/file601/LibGPS_3_0_3.zip", 30)
|
libgps = ("LibGPS", "https://cdn.esoui.com/downloads/file601/LibGPS_3_0_3.zip", 30)
|
||||||
|
|
||||||
version = "0.5.11"
|
version = "0.5.12"
|
||||||
|
@ -41,7 +41,7 @@ def get_values_from_image(img):
|
|||||||
def parse_qr_code(code):
|
def parse_qr_code(code):
|
||||||
if not code:
|
if not code:
|
||||||
return None
|
return None
|
||||||
match = re.match(r'^(\d+\.\d+),(\d+\.\d+),(\d+),(\d+)$', code)
|
match = re.match(r'^(-?\d+\.\d+),(-?\d+\.\d+),(-?\d+),(\d+)$', code)
|
||||||
if not match:
|
if not match:
|
||||||
logging.warning(f"qr code is not what was expected {code}")
|
logging.warning(f"qr code is not what was expected {code}")
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user