From 80f955beca8fcd09f736208a21f5f8592b3ebad0 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Fri, 3 Jul 2015 23:52:31 +0200 Subject: [PATCH] solve error by helper import in http plugin --- plugins/httpRequest/httpRequest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/httpRequest/httpRequest.py b/plugins/httpRequest/httpRequest.py index d92759c..8d904ea 100644 --- a/plugins/httpRequest/httpRequest.py +++ b/plugins/httpRequest/httpRequest.py @@ -15,7 +15,7 @@ import httplib #for the HTTP request from urlparse import urlparse #for split the URL into url and path from includes import globals # Global variables -from includes import helper #Global helper functions +from includes.helper import timeHandler ## # @@ -94,8 +94,8 @@ def run(typ,freq,data): #same in all types url = url.replace("%DESCR%", data["description"]) # replace Wildcards - url = url.replace("%TIME%", helper.curtime("%H:%M:%S")) # replace Wildcards - url = url.replace("%DATE%", helper.curtime("%d.%m.%Y")) # replace Wildcards + url = url.replace("%TIME%", timeHandler.getTime()) # replace Wildcards + url = url.replace("%DATE%", timeHandler.getDate()) # replace Wildcards # # HTTP-Request