From c155cb8a07fcceee728e6aa6920e97bcba723485 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Wed, 24 Jul 2024 00:09:37 +0100 Subject: [PATCH] fix(measurements): Ignore case when parsing probe_asn field Signed-off-by: fenn-cs --- .../measurements/src/measurements/routers/measurements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooniapi/services/measurements/src/measurements/routers/measurements.py b/ooniapi/services/measurements/src/measurements/routers/measurements.py index 778c4c78a..5ee10ab55 100644 --- a/ooniapi/services/measurements/src/measurements/routers/measurements.py +++ b/ooniapi/services/measurements/src/measurements/routers/measurements.py @@ -698,7 +698,7 @@ async def list_measurements( if ( probe_asn is not None and isinstance(probe_asn, str) - and probe_asn.startswith("AS") + and probe_asn.lower().startswith("as") ): probe_asn = int(probe_asn[2:]) software_versions = None