[FIX] runbot: remove deprecated method

The refresh method is deprecated and invalidate_cache should be used
instead. Also, since the new API, the cache is automatically
invalidated, hence this removal.
This commit is contained in:
Christophe Monniez 2018-03-15 15:05:55 +01:00
parent 0d2075db3e
commit 5d23d0957a

View File

@ -415,7 +415,6 @@ class runbot_build(models.Model):
else:
v['job'] = jobs[jobs.index(build.job) + 1]
build.write(v)
build.refresh()
# run job
pid = None