mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 14:59:03 +00:00
Reset failed tasks
This commit is contained in:
@@ -60,7 +60,7 @@ func (api *WebAPI) SubmitTask(r *Request) {
|
||||
r.Json(JsonResponse{
|
||||
Ok: false,
|
||||
Message: "Too many requests",
|
||||
RateLimitDelay: strconv.FormatFloat(delay, 'f', -1, 64),
|
||||
RateLimitDelay: delay,
|
||||
}, 429)
|
||||
return
|
||||
}
|
||||
@@ -111,7 +111,7 @@ func (api *WebAPI) GetTaskFromProject(r *Request) {
|
||||
r.Json(JsonResponse{
|
||||
Ok: false,
|
||||
Message: "Too many requests",
|
||||
RateLimitDelay: strconv.FormatFloat(delay, 'f', -1, 64),
|
||||
RateLimitDelay: delay,
|
||||
}, 429)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user