Skip to content

Commit 44bfafe

Browse files
committed
fix:flake8
1 parent 4397639 commit 44bfafe

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

scheduler/management/commands/rqstats.py

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

33
import click
44
from django.core.management.base import BaseCommand
5+
56
from scheduler.views import get_statistics
67

78
ANSI_LIGHT_GREEN = "\033[1;32m"

scheduler/templates/admin/scheduler/job_detail.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,28 +137,28 @@ <h2>Job {{ job.id }}
137137

138138
<div class="submit-row">
139139
<div class="deletelink-box">
140-
<a href="{% url 'queue_job_action' job.id 'delete' %}"
140+
<a href="{% url 'queue_job_action' job.id 'delete' %}"
141141
class="deletelink">Delete</a>
142142
</div>
143143
{% if job.is_started %}
144144
<div class="deletelink-box">
145-
<form method='POST' action="{% url 'queue_job_action' job.id 'cancel' %}">
145+
<form method='POST' action="{% url 'queue_job_action' job.id 'cancel' %}">
146146
{% csrf_token %}
147147
<input type="submit" value="cancel" class="default" name="cancel">
148148
</form>
149149
</div>
150150
{% endif %}
151151
{% if job.is_failed %}
152152
<div class="deletelink-box">
153-
<form method='POST' action="{% url 'queue_job_action' job.id 'requeue' %}">
153+
<form method='POST' action="{% url 'queue_job_action' job.id 'requeue' %}">
154154
{% csrf_token %}
155155
<input type="submit" value="Requeue" class="default" name="requeue">
156156
</form>
157157
</div>
158158
{% endif %}
159159
{% if not job.is_queued and not job.is_failed %}
160160
<div class="deletelink-box">
161-
<form method='POST' action="{% url 'queue_job_action' job.id 'enqueue' %}">
161+
<form method='POST' action="{% url 'queue_job_action' job.id 'enqueue' %}">
162162
{% csrf_token %}
163163
<input type="submit" value="Enqueue" class="default" name="Enqueue">
164164
</form>

scheduler/tests/test_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def test_check_rescheduled_after_execution(self):
628628
self.assertNotEquals(task.job_id, first_run_id)
629629

630630
def test_check_rescheduled_after_execution_failed_job(self):
631-
task = task_factory(self.TaskModelClass, callable_name='scheduler.tests.jobs.failing_job',
631+
task = task_factory(self.TaskModelClass, callable_name='scheduler.tests.jobs.failing_job',
632632
scheduled_time=timezone.now() + timedelta(seconds=1))
633633
queue = task.rqueue
634634
first_run_id = task.job_id

0 commit comments

Comments
 (0)