Skip to content

Commit

Permalink
update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshit28j committed Apr 21, 2024
1 parent b52d091 commit fb01ee1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 2.2.20 on 2024-04-20 16:21
# Generated by Django 2.2.20 on 2024-04-21 02:52

from django.db import migrations, models

Expand All @@ -12,7 +12,7 @@ class Migration(migrations.Migration):
operations = [
migrations.AddField(
model_name='submission',
name='isSubmissionCliType',
field=models.BooleanField(default=True),
name='from_cli',
field=models.BooleanField(default=False),
),
]
2 changes: 1 addition & 1 deletion apps/jobs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Submission(TimeStampedModel):
is_verified_by_host = models.BooleanField(default=False)

#flag for submission type: UI(False) and CLI(True)
isSubmissionCliType = models.BooleanField(default=True)
from_cli = models.BooleanField(default=False)

def __str__(self):
return "{}".format(self.id)
Expand Down
2 changes: 1 addition & 1 deletion apps/jobs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Meta:
"job_name",
"submission_metadata",
"is_verified_by_host",
"isSubmissionCliType",
"from_cli",
)

def to_representation(self, instance):
Expand Down
1 change: 0 additions & 1 deletion frontend/src/js/controllers/challengeCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,6 @@
formData.append("project_url", vm.projectUrl);
formData.append("publication_url", vm.publicationUrl);
formData.append("submission_metadata", JSON.stringify(vm.metaAttributesforCurrentSubmission));
formData.append("isSubmissionCliType",false);
if (vm.isPublicSubmission !== null) {
formData.append("is_public", vm.isPublicSubmission);
}
Expand Down

0 comments on commit fb01ee1

Please sign in to comment.