changes of os.chdir(instance.jobdirname) os.chdir('..')
[django_unres.git] / django_simple / todo / views.py
index 2134ae5..899f08b 100644 (file)
@@ -425,9 +425,10 @@ def refresh_done(request):
            task.running =1
          else:
            with open(task.jobdirname+'/file_GB000.stat', 'r') as f:
+              line=''
               for line in f:
                 pass
-              if line:
+              if line != '':
                 last = line.split()[0]
               else:
                 last = 0