mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-04-21 06:13:39 +00:00
solve error by helper import in http plugin
This commit is contained in:
parent
6a1c77b916
commit
80f955beca
1 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ import httplib #for the HTTP request
|
||||||
from urlparse import urlparse #for split the URL into url and path
|
from urlparse import urlparse #for split the URL into url and path
|
||||||
|
|
||||||
from includes import globals # Global variables
|
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
|
#same in all types
|
||||||
url = url.replace("%DESCR%", data["description"]) # replace Wildcards
|
url = url.replace("%DESCR%", data["description"]) # replace Wildcards
|
||||||
url = url.replace("%TIME%", helper.curtime("%H:%M:%S")) # replace Wildcards
|
url = url.replace("%TIME%", timeHandler.getTime()) # replace Wildcards
|
||||||
url = url.replace("%DATE%", helper.curtime("%d.%m.%Y")) # replace Wildcards
|
url = url.replace("%DATE%", timeHandler.getDate()) # replace Wildcards
|
||||||
|
|
||||||
#
|
#
|
||||||
# HTTP-Request
|
# HTTP-Request
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue