fix(submission): rmj language
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-04-08 16:27:39 +08:00
parent d897a27801
commit bdd05d0527
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 1 additions and 2 deletions

View File

@ -396,7 +396,6 @@ export default class CodeforcesProvider implements IBasicProvider {
files.push({
name: 'answer.code',
content: body.source,
lang: '/',
});
}

View File

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