Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a different tack on diffing suspend data
Attempt records now have a 'diffed' boolean field, recording whether they have any cmi.suspend_data elements that might need to be diffed. It's set to 'false' when elements with that key are saved. This makes it much quicker to find attempts that need to be diffed, so the task should be able to get to work much quicker. see #133
- Loading branch information
1 parent
3904583
commit 115d4ca
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.13 on 2021-04-07 08:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('numbas_lti', '0064_auto_20210303_1050'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='attempt', | ||
name='diffed', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Should this line be
attempt.save(...)
?