From 6af84199ac6dca346617f86aee8615b93a5e4c63 Mon Sep 17 00:00:00 2001 From: Wolfgang Fahl Date: Wed, 21 Aug 2024 08:54:38 +0200 Subject: [PATCH] fixes more self references --- lodstorage/querymain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodstorage/querymain.py b/lodstorage/querymain.py index 5410c92..e19899b 100644 --- a/lodstorage/querymain.py +++ b/lodstorage/querymain.py @@ -72,15 +72,15 @@ def handle_args(self) -> bool: endpointConf.method = args.method if self.query.limit: if "limit" in self.queryCode or "LIMIT" in self.queryCode: - queryCode = re.sub( + self.queryCode = re.sub( r"(limit|LIMIT)\s+(\d+)", f"LIMIT {self.query.limit}", self.queryCode ) else: - queryCode += f"\nLIMIT {self.query.limit}" + self.queryCode += f"\nLIMIT {self.query.limit}" if args.language == "sparql": sparql = SPARQL.fromEndpointConf(endpointConf) if args.prefixes and endpointConf is not None: - queryCode = f"{endpointConf.prefixes}\n{queryCode}" + self.queryCode = f"{endpointConf.prefixes}\n{self.queryCode}" if args.raw: qres = self.rawQuery( endpointConf,