automated terminal push

This commit is contained in:
Your Name
2025-02-12 11:06:22 -05:00
parent 2b86141b99
commit 6667c774c3
7 changed files with 189 additions and 8 deletions

View File

@@ -22,7 +22,6 @@ def ip():
return None
def hostname():
try:
@@ -56,13 +55,15 @@ def addDownloadSuccess(url):
print(response.text)
def addDownloadFailure(url):
def addDownloadFailure(url, error):
print("enter -> addDownloadFailure()")
print("param / url / ",url)
print("param / error / ",error)
data = {"url": url, "hostIP": ip(),"ip": ip(),"hostName":hostname()}
data = {"url": url, "hostIP": ip(),"ip": ip(),"hostName":hostname(), "reason":error}
json_data = json.dumps(data)