generated from nathanwoodburn/python-webserver-template
fix: Remove debug logging from namesummary
All checks were successful
Build Docker / BuildImage (push) Successful in 38s
All checks were successful
Build Docker / BuildImage (push) Successful in 38s
This commit is contained in:
@@ -401,7 +401,6 @@ def api_namesummary(name):
|
|||||||
response = requests.get(f"{HSD_URL()}/header/{summary['height']}")
|
response = requests.get(f"{HSD_URL()}/header/{summary['height']}")
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
block_header = response.json()
|
block_header = response.json()
|
||||||
print(json.dumps(block_header, indent=4))
|
|
||||||
if 'time' in block_header:
|
if 'time' in block_header:
|
||||||
summary["mintTimestamp"] = block_header['time']
|
summary["mintTimestamp"] = block_header['time']
|
||||||
summary["mintDate"] = datetime.fromtimestamp(block_header['time'],tz=timezone.utc).isoformat()
|
summary["mintDate"] = datetime.fromtimestamp(block_header['time'],tz=timezone.utc).isoformat()
|
||||||
|
|||||||
Reference in New Issue
Block a user