Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Aug 4, 2022
1 parent f8246ed commit 8e16b2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bt_7.7_happy/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,12 @@ def startTask():
def siteEdate():
global oldEdate
try:
if not oldEdate:
oldEdate = ReadFile('/www/server/panel/data/edate.pl')
oldEdate = ReadFile('/www/server/panel/data/edate.pl')
if not oldEdate:
oldEdate = '0000-00-00'
mEdate = time.strftime('%Y-%m-%d', time.localtime())
if oldEdate == mEdate:
return False
oldEdate = mEdate
os.system("nohup " + get_python_bin() + " /www/server/panel/script/site_task.py > /dev/null 2>&1 &")
except Exception as ex:
logging.info(ex)
Expand Down

0 comments on commit 8e16b2e

Please sign in to comment.