Skip to content

Commit

Permalink
make sure entry.indexed_ts gets updated even if the actual insertion …
Browse files Browse the repository at this point in the history
…in the triple store is batched and takes place a few minutes later
  • Loading branch information
staffanm committed Aug 13, 2018
1 parent feb7368 commit c532c61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ferenda/documentrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -1880,11 +1880,10 @@ def relate(self, basefile, otherrepos=[], needed=RelateNeeded(True,True,True)):
start = time.time()
if self.config.force:
self.relate_triples(basefile)
entry.indexed_ts = datetime.now()
else:
timings['v_triples'] = self.relate_triples(basefile, removesubjects=True)
entry.indexed_ts = datetime.now()
timings['e_triples'] = time.time() - start
entry.indexed_ts = datetime.now()
entry.save()

def _get_triplestore(self, **kwargs):
Expand Down

0 comments on commit c532c61

Please sign in to comment.