|
|
@ -289,6 +289,8 @@ public class Main |
|
|
|
{ |
|
|
|
if (dailyRequestCount > requestLimitDay) // daily request limit reached, wait until the next day |
|
|
|
{ |
|
|
|
//Write info what you did today |
|
|
|
writeLog("Daily requests done. Current status: Athlete "+athleteId+", Activity "+simpleActivityId); |
|
|
|
Calendar tomorrow = new GregorianCalendar(); |
|
|
|
tomorrow.setTimeInMillis(System.currentTimeMillis()); |
|
|
|
tomorrow.set(Calendar.DAY_OF_YEAR, tomorrow.get(Calendar.DAY_OF_YEAR) + 1); |
|
|
@ -305,8 +307,6 @@ public class Main |
|
|
|
catch (InterruptedException e1) |
|
|
|
{ |
|
|
|
} |
|
|
|
//Write info what you did today |
|
|
|
writeLog("Daily requests done. Current status: Athlete "+athleteId+", Activity "+simpleActivityId); |
|
|
|
dailyRequestCount=0; |
|
|
|
} |
|
|
|
|
|
|
|