From bdd05d05272596e7d3f2d9bab28c432e67a78a2c Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 8 Apr 2023 16:27:39 +0800 Subject: [PATCH] fix(submission): rmj language --- remote_judger/src/providers/codeforces.ts | 1 - web/app/models/UOJSubmission.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/remote_judger/src/providers/codeforces.ts b/remote_judger/src/providers/codeforces.ts index e4683bb..bacd14f 100644 --- a/remote_judger/src/providers/codeforces.ts +++ b/remote_judger/src/providers/codeforces.ts @@ -396,7 +396,6 @@ export default class CodeforcesProvider implements IBasicProvider { files.push({ name: 'answer.code', content: body.source, - lang: '/', }); } diff --git a/web/app/models/UOJSubmission.php b/web/app/models/UOJSubmission.php index ee0e0ef..f157115 100644 --- a/web/app/models/UOJSubmission.php +++ b/web/app/models/UOJSubmission.php @@ -251,7 +251,7 @@ class UOJSubmission { $zip_file = new ZipArchive(); $zip_file->open(UOJContext::storagePath() . $submission->getContent('file_name'), ZipArchive::CREATE); $tot_size = 0; - $language = '/'; + $language = $submission->info['language']; foreach ($files as $file) { $zip_file->addFromString($file['name'], $file['content']);