mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 11:28:11 +08:00
Replace black/isort with ruff (#188)
* Replace black/isort with ruff * fix typo
This commit is contained in:
@@ -2,11 +2,10 @@ import ast
|
||||
from multiprocessing.process import current_process
|
||||
|
||||
from django import core, db
|
||||
from django.apps.registry import apps
|
||||
from django.utils import timezone
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from django.apps.registry import apps
|
||||
|
||||
try:
|
||||
apps.check_apps_ready()
|
||||
except core.exceptions.AppRegistryNotReady:
|
||||
@@ -86,7 +85,7 @@ def scheduler(broker: Broker = None):
|
||||
# Little Fix for already broken numbers
|
||||
if s.repeats < -1:
|
||||
s.repeats = -1
|
||||
|
||||
|
||||
# Check if the value is not zero
|
||||
if s.repeats > 0:
|
||||
s.repeats -= 1
|
||||
|
||||
Reference in New Issue
Block a user