When importing data, skip punishments with active set to false to respect older punishments
This commit is contained in:
parent
7126dde94a
commit
b7e95d3120
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user