// log.warning("Discarded Old version " + PACKAGE_NAME + " NO MAPPING");
return;
}
}
DailyCounts today = DailyCountsGetters.getToday(acraLog.PACKAGE_NAME);
if(today.Reports > 200)
{
// System.out.println("200 Reports in day " + PACKAGE_NAME + " DISCARDING NEW");
log.severe("200 Reports in day " + PACKAGE_NAME + " DISCARDING NEW");
appPackage.enabled = false;
ofy.save().entity(appPackage).now();
// email app owner.
SendAppTooManyEMail(appUser,appPackage,today);
response.sendError(HttpServletResponse.SC_FORBIDDEN);
return;
}
ofy.save().entity(basicInfo).now();
ofy.save().entity(acraLog).now();
// Increment counters.
appUser.Totals.incReports();
ofy.save().entity(appUser).now();
appPackage.Totals.incReports();
ofy.save().entity(appPackage).now();
DailyCounts counts = DailyCountsGetters.getToday(appUser.id);
counts.incReports();
ofy.save().entity(counts).now();
today.incReports();
ofy.save().entity(today).now();