mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
scoreboard: bug fixes
This commit is contained in:
6 files changed
+6
-6
No files matched your search
@@ -55,7 +55,7 @@ export function apply(ctx: Context) {
|
||||
payload: {
|
||||
name: tdoc.title,
|
||||
duration: Math.floor((new Date(tdoc.endAt).getTime() - new Date(tdoc.beginAt).getTime()) / 1000),
|
||||
frozen: Math.floor((new Date(tdoc.endAt).getTime() - new Date(tdoc.lockAt).getTime()) / 1000),
|
||||
frozen: Math.floor((new Date(tdoc.lockAt).getTime() - new Date(tdoc.beginAt).getTime()) / 1000),
|
||||
problems: tdoc.pids.map((i, n) => ({ name: pid(n), id: i.toString() })),
|
||||
teams: teams.map((t) => ({
|
||||
id: t.uid.toString(),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/onsite-toolkit",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"dependencies": {
|
||||
"@react-spring/web": "^9.7.5",
|
||||
"react-use": "^17.5.1"
|
||||
|
||||
Reference in new issue
Block a user