Merge branch 'release/v4.77'
This commit is contained in:
@@ -68,12 +68,15 @@ def longtask2(aantal,jobid=None,debug=False):
|
||||
counter += 1
|
||||
if counter > 10:
|
||||
counter = 0
|
||||
progress = int(100.*i/aantal)
|
||||
if debug:
|
||||
progress = int(100.*i/aantal)
|
||||
if jobid != None:
|
||||
url = settings.SITE_URL+"/rowers/record-progress/"
|
||||
url += str(progress)+"/"+jobid
|
||||
s = requests.get(url)
|
||||
print progress
|
||||
if jobid != None:
|
||||
url = settings.SITE_URL+"/rowers/record-progress/"
|
||||
url += str(progress)+"/"+jobid
|
||||
s = requests.get(url)
|
||||
if debug:
|
||||
print s
|
||||
|
||||
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user