Fixed missing review stats writing (#3487).
This commit is contained in:
parent
7bc6a415f6
commit
935bdeed07
1 changed files with 7 additions and 1 deletions
|
@ -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.
|
* This file is part of (April) Hebdobot.
|
||||||
*
|
*
|
||||||
|
@ -79,6 +79,7 @@ public class FinishReviewHook extends Hook
|
||||||
//
|
//
|
||||||
bot.getReview().endReview();
|
bot.getReview().endReview();
|
||||||
|
|
||||||
|
// Load and update review statistics.
|
||||||
ReviewDatas datas;
|
ReviewDatas datas;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -90,6 +91,11 @@ public class FinishReviewHook extends Hook
|
||||||
bot.getReview().getDurationInMinutes());
|
bot.getReview().getDurationInMinutes());
|
||||||
|
|
||||||
datas.add(currentReviewData);
|
datas.add(currentReviewData);
|
||||||
|
|
||||||
|
if (bot.getReview().getParticipants().size() > 1)
|
||||||
|
{
|
||||||
|
ReviewDatasFile.append(reviewDataFile, currentReviewData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue