|
|
|
|
@ -435,7 +435,6 @@ class MarathonProvider extends ChangeNotifier {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool checkIfPrivilegedForMarathon() {
|
|
|
|
|
return true;
|
|
|
|
|
for (PrivilegeListModel element in AppState().privilegeListModel!) {
|
|
|
|
|
if (element.serviceName == "Marathon") {
|
|
|
|
|
if (element.previlege != null) {
|
|
|
|
|
@ -451,7 +450,6 @@ class MarathonProvider extends ChangeNotifier {
|
|
|
|
|
notifyListeners();
|
|
|
|
|
isPrivilegedWithMarathon = checkIfPrivilegedForMarathon();
|
|
|
|
|
if (isPrivilegedWithMarathon) {
|
|
|
|
|
await MarathonApiClient().getMarathonToken().whenComplete(() async {
|
|
|
|
|
marathonDetailModel = await MarathonApiClient().getMarathonDetails();
|
|
|
|
|
updateTotalSecondsToWaitForMarathon = marathonDetailModel.marathonBufferTime ?? 30;
|
|
|
|
|
if (marathonDetailModel.id == null) {
|
|
|
|
|
@ -464,7 +462,6 @@ class MarathonProvider extends ChangeNotifier {
|
|
|
|
|
itsMarathonTime = false;
|
|
|
|
|
}
|
|
|
|
|
populateQuestionStatusesList();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
isLoading = false;
|
|
|
|
|
notifyListeners();
|
|
|
|
|
|