]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 14:52:20 +0000 (16:52 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 12 Jun 2023 14:52:20 +0000 (16:52 +0200)
- fixed finding "powered by " (start of string)

fba/federation.py

index 7f933b38630ef560771e6d25bd017df363085a7d..045b0d20d064cd14295c0cef173c703eb7ada938 100644 (file)
@@ -361,7 +361,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str:
         software = version.remove(software)
 
     # DEBUG: print(f"DEBUG: software[]='{type(software)}'")
-    if isinstance(software, str) and " powered by " in software:
+    if isinstance(software, str) and "powered by " in software:
         # DEBUG: print(f"DEBUG: software='{software}' has 'powered by' in it")
         software = version.remove(version.strip_powered_by(software))
     elif isinstance(software, str) and " hosted on " in software: