Skip to content

Commit e00a738

Browse files
committed
fix(lint): surgical whitespace fixes for migration files
1 parent 9c38afc commit e00a738

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

api_app/analyzers_manager/migrations/0178_add_local_db_models_torproject.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class Migration(migrations.Migration):
5-
65
dependencies = [
76
("analyzers_manager", "0177_update_urlscan_observable_supported"),
87
]
@@ -31,4 +30,4 @@ class Migration(migrations.Migration):
3130
"verbose_name_plural": "Tor Exit Nodes",
3231
},
3332
),
34-
]
33+
]

api_app/analyzers_manager/migrations/0186_add_update_schedule_stratosphere_firehol.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@
66
def add_update_schedules(apps, schema_editor):
77
PythonModule = apps.get_model("api_app", "PythonModule")
88
CrontabSchedule = apps.get_model("django_celery_beat", "CrontabSchedule")
9-
9+
1010
# daily crontab schedule (midnight every day)
1111
schedule, _ = CrontabSchedule.objects.get_or_create(
12-
minute="0",
13-
hour="0",
14-
day_of_week="*",
15-
day_of_month="*",
16-
month_of_year="*"
12+
minute="0", hour="0", day_of_week="*", day_of_month="*", month_of_year="*"
1713
)
18-
14+
1915
modules_to_update = [
2016
{"module": "stratosphere.Stratos", "base_path": "api_app.analyzers_manager.observable_analyzers"},
21-
{"module": "firehol_iplist.FireHol_IPList", "base_path": "api_app.analyzers_manager.observable_analyzers"}
17+
{
18+
"module": "firehol_iplist.FireHol_IPList",
19+
"base_path": "api_app.analyzers_manager.observable_analyzers",
20+
},
2221
]
23-
22+
2423
for mod_data in modules_to_update:
2524
try:
2625
module = PythonModule.objects.get(**mod_data)
@@ -32,12 +31,15 @@ def add_update_schedules(apps, schema_editor):
3231

3332
def remove_update_schedules(apps, schema_editor):
3433
PythonModule = apps.get_model("api_app", "PythonModule")
35-
34+
3635
modules_to_update = [
3736
{"module": "stratosphere.Stratos", "base_path": "api_app.analyzers_manager.observable_analyzers"},
38-
{"module": "firehol_iplist.FireHol_IPList", "base_path": "api_app.analyzers_manager.observable_analyzers"}
37+
{
38+
"module": "firehol_iplist.FireHol_IPList",
39+
"base_path": "api_app.analyzers_manager.observable_analyzers",
40+
},
3941
]
40-
42+
4143
for mod_data in modules_to_update:
4244
try:
4345
module = PythonModule.objects.get(**mod_data)
@@ -48,9 +50,8 @@ def remove_update_schedules(apps, schema_editor):
4850

4951

5052
class Migration(migrations.Migration):
51-
5253
dependencies = [
53-
('analyzers_manager', '0185_fireholipentry'),
54+
("analyzers_manager", "0185_fireholipentry"),
5455
]
5556

5657
operations = [

0 commit comments

Comments
 (0)