Skip to content

Commit

Permalink
Evaluation fixies 🤼‍♀️
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed Mar 4, 2024
1 parent ba41dd2 commit fa151f1
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 113 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.11.2 : 2023-03-04

- **Fixed**: Evaluation reports compatible with new

## 1.11.1 : 2024-02-25

- **Fixed**: [Validate Docker image path #6](https://github.com/FIIT-Databases/tester/issues/6)
Expand Down
2 changes: 1 addition & 1 deletion apps/core/models/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def execute_tasks(sender, instance: Evaluation, created: bool, **kwargs):
additional_information=row,
)
instance.tasks.add(task)
django_rq.enqueue(basic_job, task.pk, False)
django_rq.enqueue(basic_job, task_id=task.pk, public_only=False)


__all__ = ["Evaluation"]
9 changes: 5 additions & 4 deletions apps/web/views/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ def get(self, request, evaluation_id: UUID):

for task in evaluation.tasks.all():
item = {
"email": task.additional_information.get("email"),
"name": task.additional_information.get("name"),
"surname": task.additional_information.get("surname"),
"seminar": task.additional_information.get("seminar"),
"timestamp": task.additional_information.get("Časová pečiatka"),
"email": task.additional_information.get("E-mailová adresa"),
"name": task.additional_information.get("Meno"),
"surname": task.additional_information.get("Priezvisko"),
"seminar": task.additional_information.get("Cvicenie"),
"url": f"{settings.BASE_URL}{task.get_absolute_url()}",
"status": task.status,
"image": task.image,
Expand Down
Loading

0 comments on commit fa151f1

Please sign in to comment.