Skip to content

Commit

Permalink
disable video detection until #203 is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
lardbit committed Aug 13, 2022
1 parent c9a25fe commit f64dcce
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/nefarious/migrations/0073_disable_video_detection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 3.0.2 on 2022-08-13 13:27

from django.db import migrations


def disable_video_detection(apps, schema_editor):
NefariousSettings = apps.get_model('nefarious', 'NefariousSettings')

nefarious_settings = NefariousSettings.objects.all().first()
if not nefarious_settings: # skip if no settings exist
return
nefarious_settings.enable_video_detection = False
nefarious_settings.save()


class Migration(migrations.Migration):

dependencies = [
('nefarious', '0072_auto_20220714_2111'),
]

operations = [
migrations.RunPython(disable_video_detection),
]

0 comments on commit f64dcce

Please sign in to comment.