diff --git a/py-i2phosts-fetcher b/py-i2phosts-fetcher index fa66639..b282045 100755 --- a/py-i2phosts-fetcher +++ b/py-i2phosts-fetcher @@ -100,9 +100,6 @@ for source in all_sources: if etag: log.debug('%s ETag: %s', source.name, etag) source.etag = etag - # update last_success - source.last_success = datetime.datetime.now() - source.save() # form commnd-line for invoke injector log.info('adding hosts from: %s', source.name) sp_args = ['py-i2phosts-injector', '-s', '-a', '-f', tmpfile, '-d', @@ -112,3 +109,6 @@ for source in all_sources: out = p.communicate()[0] os.remove(tmpfile) log.info('injector output: \n%s', out) + # update last_success + source.last_success = datetime.datetime.now() + source.save()