- 
                Notifications
    
You must be signed in to change notification settings  - Fork 90
 
Fix viewing testrun results (issue #123) #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Generated by Django 3.2.16 on 2022-12-20 19:57 | ||
| 
     | 
||
| from django.db import migrations, models | ||
| 
     | 
||
| 
     | 
||
| class Migration(migrations.Migration): | ||
| 
     | 
||
| dependencies = [ | ||
| ('testrun', '0008_auto_20201214_0012'), | ||
| ] | ||
| 
     | 
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='testrunprogramsubmission', | ||
| name='input_is_zip', | ||
| field=models.BooleanField(default=False), | ||
| ), | ||
| ] | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -127,7 +127,10 @@ def download_input_file_view(request, submission_id): | |
| submission = get_submission_or_error( | ||
| request, submission_id, TestRunProgramSubmission | ||
| ) | ||
| return stream_file(submission.input_file, name='input.in') | ||
| name='input.in' | ||
| if submission.input_is_zip: | ||
| name+='.zip' | ||
                
       | 
||
| return stream_file(submission.input_file, name=name) | ||
| 
     | 
||
| 
     | 
||
| @enforce_condition(contest_exists & can_enter_contest) | ||
| 
          
            
          
           | 
    ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is data migration needed? if not I suggest to add some comment in the code why it can be skipped.