This commit is contained in:
@@ -2,12 +2,10 @@ import { DIFFICULTY } from "utils/constants"
|
||||
import { getACRate } from "utils/functions"
|
||||
import http from "utils/http"
|
||||
import {
|
||||
DetailsData,
|
||||
Problem,
|
||||
Submission,
|
||||
SubmissionListPayload,
|
||||
SubmitCodePayload,
|
||||
WeeklyData,
|
||||
} from "utils/types"
|
||||
|
||||
function filterResult(result: Problem) {
|
||||
@@ -258,13 +256,3 @@ export function getAIWeeklyData(
|
||||
) {
|
||||
return http.get("ai/weekly", { params: { end, duration, username } })
|
||||
}
|
||||
|
||||
export function getAIAnalysis(
|
||||
detailsData: DetailsData,
|
||||
weeklyData: WeeklyData[],
|
||||
) {
|
||||
return http.post("ai/analysis", {
|
||||
details: detailsData,
|
||||
weekly: weeklyData,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user