Skip to content

Commit

Permalink
migrations: check for all non-rendered states
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippKilian committed May 28, 2024
1 parent c530734 commit a811d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion b3lb/rest/migrations/0021_refill_recordset.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def refill_record_set(apps, schema_editor):
record_set_class = apps.get_model('rest', 'RecordSet')
meeting_class = apps.get_model('rest', 'Meeting')
for record_set in record_set_class.objects.all():
if record_set.status == "UNKNOWN" and record_set.meta_meeting_id:
if record_set.status in ["UNKNOWN", "UPLOADED"] and record_set.meta_meeting_id:
meetings = meeting_class.objects.filter(id=record_set.meta_meeting_id, secret=record_set.secret)
if meetings.count() == 1:
record_set.meeting = meetings[0]
Expand Down

0 comments on commit a811d08

Please sign in to comment.