]> git.mxchange.org Git - fba.git/commitdiff
Fixed:
authorRoland Häder <roland@mxchange.org>
Sat, 8 Jul 2023 00:54:09 +0000 (02:54 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 8 Jul 2023 00:54:28 +0000 (02:54 +0200)
- forgot to add [key] (value access)

daemon.py

index 517e445e9aaeae317be588fd16d77910e9ee0596..499ffc11602eb85eb54f51e603156e54305806fe 100755 (executable)
--- a/daemon.py
+++ b/daemon.py
@@ -390,7 +390,7 @@ def rss(request: Request, domain: str):
     format = config.get("timestamp_format")
     instance = dict()
     for key in domain_data.keys():
-        if key in ["last_nodeinfo", "last_blocked", "first_seen", "last_updated", "last_instance_fetch"] and isinstance(domain_data, float):
+        if key in ["last_nodeinfo", "last_blocked", "first_seen", "last_updated", "last_instance_fetch"] and isinstance(domain_data[key], float):
             # Timestamps
             instance[key] = datetime.utcfromtimestamp(domain_data[key]).strftime(format)
         else: