Fixed missing review stats writing (#3487).

This commit is contained in:
Christian P. MOMON 2019-05-02 12:26:07 +02:00
parent 7bc6a415f6
commit 935bdeed07

View File

@ -1,5 +1,5 @@
/**
* Copyright (C) 2018 Christian Pierre MOMON <cmomon@april.org>
* Copyright (C) 2018-2019 Christian Pierre MOMON <cmomon@april.org>
*
* This file is part of (April) Hebdobot.
*
@ -79,6 +79,7 @@ public class FinishReviewHook extends Hook
//
bot.getReview().endReview();
// Load and update review statistics.
ReviewDatas datas;
try
{
@ -90,6 +91,11 @@ public class FinishReviewHook extends Hook
bot.getReview().getDurationInMinutes());
datas.add(currentReviewData);
if (bot.getReview().getParticipants().size() > 1)
{
ReviewDatasFile.append(reviewDataFile, currentReviewData);
}
}
catch (Exception exception)
{