Fixed missing review stats writing (#3487).
This commit is contained in:
parent
7bc6a415f6
commit
935bdeed07
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user