judge: detail setting (#78)

This commit is contained in:
undefined committed 2021-05-01 12:17:25 +08:00
1 parent 7bde6a922c
commit 9cdd47d256
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.5.16",
"version": "2.5.17",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -167,7 +167,7 @@ export default class Hydro {
constructor(config) {
this.config = config;
this.config.detail = this.config.detail || true;
this.config.detail = this.config.detail ?? true;
this.config.cookie = this.config.cookie || '';
this.config.last_update_at = this.config.last_update_at || 0;
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;
+1 -1
View File
@@ -173,7 +173,7 @@ export default class VJ4 {
constructor(config) {
this.config = config;
this.config.detail = this.config.detail || true;
this.config.detail = this.config.detail ?? true;
this.config.cookie = this.config.cookie || '';
this.config.last_update_at = this.config.last_update_at || 0;
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;