vjudge: codeforces: fix image

This commit is contained in:
undefined committed 2021-06-21 17:23:29 +08:00
1 parent 1711babf56
commit 1102496b91
4 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.28.45",
"version": "2.28.46",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
+8
View File
@@ -415,6 +415,14 @@ const scripts: UpgradeScript[] = [
}
return true;
},
async function _33_34() {
const _FRESH_INSTALL_IGNORE = 1;
await iterateAllProblem(['content'], async (pdoc) => {
if (typeof pdoc.content !== 'string') return;
await problem.edit(pdoc.domainId, pdoc.docId, { content: pdoc.content.replace(/%file%:\/\//g, 'file://') });
});
return true;
},
];
export default scripts;