update contest visible.

This commit is contained in:
2023-12-19 19:32:58 +08:00
parent 47cf7aaa6b
commit 8f716a7ef1
5 changed files with 10 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import { getTime, intervalToDuration, parseISO } from "date-fns"
import { STORAGE_KEY } from "./constants"
import { User } from "./types"
export function getACRate(acCount: number, totalCount: number) {

View File

@@ -266,21 +266,14 @@ export interface Rank {
submission_number: number
}
export interface Contest {
export interface Contest extends BlankContest {
id: number
created_by: SampleUser
status: ContestStatus
contest_type: ContestType
title: string
description: string
real_time_rank: boolean
rule_type: "ACM"
start_time: string
end_time: string
create_time: string
now: string
last_update_time: string
visible: boolean
}
export interface BlankContest {