style: use != instead of not in for single SYNCING check

This commit is contained in:
ifoughali 2025-11-26 08:05:20 +01:00
parent da4c669312
commit 57b47dc1ea

View File

@ -111,9 +111,7 @@ class DataSource(JobsMixin, PrimaryModel):
@property
def ready_for_sync(self):
return self.enabled and self.status not in (
DataSourceStatusChoices.SYNCING
)
return self.enabled and self.status != DataSourceStatusChoices.SYNCING
def clean(self):
super().clean()