updating works again

This commit is contained in:
potzplitz 2024-09-17 18:10:10 +02:00
parent bf1195bb49
commit eaf293fc09

View file

@ -6,6 +6,7 @@ import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import org.apache.commons.io.FileUtils;
import org.json.JSONException;
import org.json.JSONObject;
public class GuiData {
@ -80,8 +81,15 @@ public class GuiData {
localLevels.add(obj.getString("name"));
id.add(obj.getInt("id") + "");
verifier.add(obj.getString("verifier"));
creator.add(obj.getString("author"));
try {
verifier.add(obj.getString("verifier"));
creator.add(obj.getString("author"));
} catch (JSONException e) {
verifier.add(Long.toString(obj.getLong("verifier")));
creator.add(Long.toString(obj.getLong("author")));
}
qualification.add(obj.getInt("percentToQualify") + "");
ytlink.add(obj.getString("verification") + "");
creators.add(obj.getJSONArray("creators") + "");