mirror of
https://github.com/Team4388/RidgeScout.git
synced 2026-06-09 08:38:03 -06:00
Improve TBA event downloading
This commit is contained in:
@@ -14,7 +14,7 @@ public class DataManager {
|
||||
public static String evcode;
|
||||
public static frcEvent event;
|
||||
public static void reload_event(){
|
||||
if(event != null) return;
|
||||
// if(event != null) return;
|
||||
evcode = getevcode();
|
||||
|
||||
if(evcode.equals("unset")) return;
|
||||
|
||||
@@ -36,6 +36,11 @@ public final class fileEditor {
|
||||
public static final byte internalDataVersion = 0x01;
|
||||
public static final int maxCompressedBlockSize = 4096;
|
||||
public static final int lengthHeaderBytes = 3;
|
||||
|
||||
|
||||
public static final String TBAAddress = "https://www.thebluealliance.com/api/v3/";
|
||||
public static final String TBAHeader = "X-TBA-Auth-Key: tjEKSZojAU2pgbs2mBt06SKyOakVhLutj3NwuxLTxPKQPLih11aCIwRIVFXKzY4e";
|
||||
|
||||
// private TimeZone localTimeZone = TimeZone.getDefault();
|
||||
|
||||
|
||||
@@ -405,7 +410,7 @@ public final class fileEditor {
|
||||
}
|
||||
});
|
||||
} catch (Exception e){
|
||||
e.printStackTrace();
|
||||
AlertManager.error(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user