Skip to content

Commit

Permalink
fixes more self references
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Aug 21, 2024
1 parent 7b366b4 commit 6af8419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lodstorage/querymain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6af8419

Please sign in to comment.