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']);