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