Skip to content

Commit

Permalink
Merge pull request #199 from jnywong/patch-evaluator-logs
Browse files Browse the repository at this point in the history
🚑 Fix database field for evaluator logs
  • Loading branch information
jnywong authored Nov 23, 2024
2 parents ea12e27 + f91f597 commit f63df7c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions frx_challenges/web/migrations/0034_evaluation_evaluator_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-11-23 16:19

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("web", "0033_rename_date_created_submission_last_updated_and_more"),
]

operations = [
migrations.AddField(
model_name="evaluation",
name="evaluator_logs",
field=models.TextField(blank=True, null=True),
),
]
1 change: 1 addition & 0 deletions frx_challenges/web/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class Status(models.TextChoices):
result = models.JSONField(blank=True, null=True)
# FIXME: Figure out max_length or use IntChoices
status = models.CharField(choices=Status, default=Status.NOT_STARTED, max_length=16)
evaluator_logs = models.TextField(blank=True, null=True)

created_at = models.DateTimeField(auto_now_add=True)
last_updated = models.DateTimeField(auto_now=True)
Expand Down

0 comments on commit f63df7c

Please sign in to comment.