updating works again
This commit is contained in:
parent
bf1195bb49
commit
eaf293fc09
1 changed files with 10 additions and 2 deletions
|
@ -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") + "");
|
||||
|
|
Loading…
Reference in a new issue