Skip to content

Commit a384b3b

Browse files
committed
[chores] Formatted with black
1 parent 070ba3a commit a384b3b

40 files changed

+4
-40
lines changed

openwisp_monitoring/check/classes/iperf3.py

-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def get_iperf3_schema():
165165

166166

167167
class Iperf3(BaseCheck):
168-
169168
schema = get_iperf3_schema()
170169

171170
def validate_params(self, params=None):

openwisp_monitoring/check/migrations/0001_initial_squashed_0002_check_unique_together.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
class Migration(migrations.Migration):
17-
1817
dependencies = [
1918
('contenttypes', '0002_remove_content_type_name'),
2019
swapper.dependency('config', 'Device', '0004_add_device_model'),

openwisp_monitoring/check/migrations/0003_create_ping.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class Migration(migrations.Migration):
5-
65
dependencies = [
76
('check', '0001_initial_squashed_0002_check_unique_together'),
87
]

openwisp_monitoring/check/migrations/0004_rename_active_to_is_active.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [('check', '0003_create_ping')]
1110

1211
operations = [

openwisp_monitoring/check/migrations/0005_create_config_applied.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class Migration(migrations.Migration):
5-
65
dependencies = [
76
('check', '0004_rename_active_to_is_active'),
87
]

openwisp_monitoring/check/migrations/0006_rename_check_check_check_type.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('check', '0005_create_config_applied'),
109
]

openwisp_monitoring/check/migrations/0007_create_checks.py

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def remove_config_applied_checks(apps, schema_editor):
4646

4747

4848
class Migration(migrations.Migration):
49-
5049
dependencies = [
5150
('check', '0006_rename_check_check_check_type'),
5251
swapper.dependency('monitoring', 'Metric'),

openwisp_monitoring/check/migrations/0008_alter_check_options.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('check', '0007_create_checks'),
109
]

openwisp_monitoring/check/migrations/0009_add_check_inline_permissions.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
('check', '0008_alter_check_options'),
1211
]

openwisp_monitoring/check/tests/test_iperf3.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
class TestIperf3(
3636
CreateConnectionsMixin, TestDeviceMonitoringMixin, TransactionTestCase
3737
):
38-
3938
_IPERF3 = app_settings.CHECK_CLASSES[2][0]
4039
_RESULT_KEYS = [
4140
'iperf3_result',

openwisp_monitoring/device/base/models.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ def save_wifi_clients_and_sessions(self):
335335
active_sessions.append(session_obj.pk)
336336

337337
# Close open WifiSession
338-
WifiSession.objects.filter(device_id=self.id, stop_time=None,).exclude(
338+
WifiSession.objects.filter(
339+
device_id=self.id,
340+
stop_time=None,
341+
).exclude(
339342
pk__in=active_sessions
340343
).update(stop_time=now())
341344

openwisp_monitoring/device/migrations/0001_squashed_0002_devicemonitoring.py

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def create_device_monitoring(apps, schema_editor):
2525

2626

2727
class Migration(migrations.Migration):
28-
2928
initial = True
3029

3130
dependencies = [

openwisp_monitoring/device/migrations/0002_create_template.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
('device_monitoring', '0001_squashed_0002_devicemonitoring'),
1110
]

openwisp_monitoring/device/migrations/0003_update_template.py

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def migrate_data(apps, schema_editor):
4747

4848

4949
class Migration(migrations.Migration):
50-
5150
dependencies = [
5251
('device_monitoring', '0002_create_template'),
5352
]

openwisp_monitoring/device/migrations/0004_wificlient_wifisession.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class Migration(migrations.Migration):
16-
1716
dependencies = [
1817
swapper.dependency(
1918
*swapper.split(settings.AUTH_USER_MODEL), version='0004_default_groups'

openwisp_monitoring/device/migrations/0005_add_group_permissions.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
('device_monitoring', '0004_wificlient_wifisession'),
1211
]

openwisp_monitoring/device/migrations/0006_alter_wificlient_field_ht_vht.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('device_monitoring', '0005_add_group_permissions'),
109
]

openwisp_monitoring/device/migrations/0007_add_wificlient_field_he.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('device_monitoring', '0006_alter_wificlient_field_ht_vht'),
109
]

openwisp_monitoring/device/migrations/0008_alter_wificlient_options.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('device_monitoring', '0007_add_wificlient_field_he'),
109
]

openwisp_monitoring/device/tests/test_admin.py

-1
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,6 @@ class TestWifiSessionAdmin(
849849
TestWifiClientSessionMixin,
850850
TestCase,
851851
):
852-
853852
wifi_session_app_label = WifiSession._meta.app_label
854853
wifi_session_model_name = WifiSession._meta.model_name
855854

openwisp_monitoring/monitoring/migrations/0001_squashed_0023_alert_settings_tolerance_remove_default.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
class Migration(migrations.Migration):
19-
2019
initial = True
2120

2221
dependencies = [

openwisp_monitoring/monitoring/migrations/0002_metric_is_healthy_tolerance.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('monitoring', '0001_squashed_0023_alert_settings_tolerance_remove_default'),
109
]

openwisp_monitoring/monitoring/migrations/0003_populate_metric_is_healthy_tolerance.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def populate_is_healthy_tolerant(apps, schema_editor):
2020

2121

2222
class Migration(migrations.Migration):
23-
2423
dependencies = [
2524
('monitoring', '0002_metric_is_healthy_tolerance'),
2625
]

openwisp_monitoring/monitoring/migrations/0004_metric_main_and_extra_tags.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Migration(migrations.Migration):
10-
1110
dependencies = [
1211
('contenttypes', '0002_remove_content_type_name'),
1312
('monitoring', '0003_populate_metric_is_healthy_tolerance'),

openwisp_monitoring/monitoring/migrations/0005_migrate_metrics.py

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def reverse_migration(apps, schema_editor):
6565

6666

6767
class Migration(migrations.Migration):
68-
6968
dependencies = [('monitoring', '0004_metric_main_and_extra_tags')]
7069

7170
operations = [

openwisp_monitoring/monitoring/migrations/0006_migrate_influxdb_structure.py

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ def forward_migration(apps, schema_editor):
99

1010

1111
class Migration(migrations.Migration):
12-
1312
dependencies = [('monitoring', '0005_migrate_metrics')]
1413

1514
operations = [

openwisp_monitoring/monitoring/migrations/0007_alter_metric_object_id.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('monitoring', '0006_migrate_influxdb_structure'),
109
]

openwisp_monitoring/monitoring/migrations/0008_create_general_metrics.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [('monitoring', '0007_alter_metric_object_id')]
109

1110
operations = [

openwisp_monitoring/monitoring/migrations/0009_alter_alertsettings_options.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('monitoring', '0008_create_general_metrics'),
109
]

openwisp_monitoring/monitoring/migrations/0010_add_alertsettings_inline_permissions.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
('monitoring', '0009_alter_alertsettings_options'),
1211
]

openwisp_monitoring/monitoring/migrations/0011_alter_metric_field_name.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('monitoring', '0010_add_alertsettings_inline_permissions'),
109
]

tests/openwisp2/sample_check/migrations/0001_initial.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class Migration(migrations.Migration):
16-
1716
initial = True
1817

1918
dependencies = [('contenttypes', '0002_remove_content_type_name')]

tests/openwisp2/sample_check/migrations/0002_check_last_called.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [('sample_check', '0001_initial')]
98

109
operations = [

tests/openwisp2/sample_check/migrations/0003_add_check_inline_permissions.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class Migration(migrations.Migration):
11-
1211
dependencies = [
1312
('sample_check', '0002_check_last_called'),
1413
]

tests/openwisp2/sample_device_monitoring/migrations/0001_initial.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class Migration(migrations.Migration):
16-
1716
initial = True
1817

1918
dependencies = [('config', '0027_add_indexes_on_ip_fields')]

tests/openwisp2/sample_device_monitoring/migrations/0002_add_group_permissions.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class Migration(migrations.Migration):
9-
109
dependencies = [
1110
('sample_device_monitoring', '0001_initial'),
1211
]

tests/openwisp2/sample_monitoring/migrations/0001_initial.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
class Migration(migrations.Migration):
21-
2221
initial = True
2322

2423
dependencies = [('contenttypes', '0002_remove_content_type_name')]

tests/openwisp2/sample_monitoring/migrations/0002_create_general_metric.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class Migration(migrations.Migration):
10-
1110
dependencies = [('sample_monitoring', '0001_initial')]
1211

1312
operations = [

tests/openwisp2/sample_monitoring/migrations/0003_add_alertsettings_inline_permissions.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class Migration(migrations.Migration):
11-
1211
dependencies = [
1312
('sample_monitoring', '0002_create_general_metric'),
1413
]

tests/openwisp2/sample_monitoring/migrations/0004_alter_metric_field_name.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
('sample_monitoring', '0003_add_alertsettings_inline_permissions'),
109
]

0 commit comments

Comments
 (0)