Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Dec 14, 2024
1 parent 04335f7 commit a27e6a9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ Hydro 用户群:1085853538
<details>
<summary><h2>更新日志(点击展开)</h2></summary>

## Hydro 4.18.2 / UI 4.56.2

- core: 修复提交答案题压缩包提交 (#917)
- ui: 优化 domain_user 页面性能
- core: 优化评测任务调度
- ui: 下载文件失败时自动重试
- core: Consumer: 从错误中自动恢复

## Hydro 4.18.0 / UI 4.56.0

- core&ui: ScoreboardView API
Expand Down
2 changes: 1 addition & 1 deletion packages/hydrooj/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "4.18.1",
"version": "4.18.2",
"bin": "bin/hydrooj.js",
"main": "src/plugin-api",
"module": "src/plugin-api",
Expand Down
5 changes: 3 additions & 2 deletions packages/hydrooj/src/model/problem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,11 +603,12 @@ export class ProblemModel {
if (options.delSource) await fs.remove(tmpdir);
}

static async export(domainId: string) {
static async export(domainId: string, pidFilter?:string) {
console.log('Exporting problems...');
const tmpdir = path.join(os.tmpdir(), 'hydro', `${Math.random()}.export`);
await fs.mkdir(tmpdir);
const pdocs = await ProblemModel.getMulti(domainId, {}, ProblemModel.PROJECTION_PUBLIC).toArray();
const pdocs = await ProblemModel.getMulti(domainId, pidFilter ? { pid: pidFilter } : {}, ProblemModel.PROJECTION_PUBLIC).toArray();
if (process.env.HYDRO_CLI) logger.info(`Exporting ${pdocs.length} problems`);
for (const pdoc of pdocs) {
if (process.env.HYDRO_CLI) logger.info(`Exporting problem ${pdoc.pid || (`P${pdoc.docId}`)} (${pdoc.title})`);
const problemPath = path.join(tmpdir, `${pdoc.docId}`);
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-default/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.56.1",
"version": "4.56.2",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/utils",
"version": "1.4.30",
"version": "1.4.31",
"description": "hydrooj utils",
"main": "lib/utils.ts",
"repository": "https://github.com/hydro-dev/Hydro.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/vjudge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/vjudge",
"version": "1.9.14",
"version": "1.9.15",
"description": "Submit problems to remote oj",
"main": "./src/index.ts",
"repository": "https://github.com/hydro-dev/Hydro.git",
Expand Down

0 comments on commit a27e6a9

Please sign in to comment.