mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 06:17:10 +00:00
Merge branch 'master' of gitlab.prodcontest.ru:team-15/project
This commit is contained in:
@@ -24,7 +24,7 @@ export const submitTaskSolution = async (
|
||||
|
||||
// туповатый костыль но для мвп сойдет
|
||||
if (typeof solution === 'string') {
|
||||
const textFile = new File([solution], 'solution.txt', { type: 'text/plain' });
|
||||
const textFile = new File([solution], 'solution_example.txt', { type: 'text/plain' });
|
||||
formData.append('content', textFile);
|
||||
} else {
|
||||
formData.append('content', solution);
|
||||
|
||||
@@ -5,6 +5,7 @@ interface Task {
|
||||
type: TaskType;
|
||||
in_competition_position: number;
|
||||
points: number;
|
||||
max_attempts: number;
|
||||
}
|
||||
|
||||
export interface TaskAttachment {
|
||||
|
||||
Reference in New Issue
Block a user