When importing data, skip punishments with active set to false to respect older punishments

This commit is contained in:
Colin McDonald 2016-05-28 00:33:40 -04:00
parent 7126dde94a
commit b7e95d3120

View File

@ -308,6 +308,11 @@ public final class APIv3 {
return;
}
// Old punishments have this value set to false to indicate they're not active anymore.
if (punishment.containsKey("active") && !punishment.getBoolean("active")) {
return;
}
Punishment created = new Punishment(
new ObjectId().toString(),
target,