Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 410503b

Browse files
committed
Fix to work with Python 3.7
1 parent 4e0e1ee commit 410503b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ wagtail-linkchecker
33
===============
44

55
A tool/plugin to assist with finding broken links on your wagtail site.
6-
This tool works asynchronously using celery.
6+
This tool works asynchronously using django-rq.
77

88
Installing
99
==========
@@ -21,9 +21,11 @@ To use, firstly you will need to add ``wagtaillinkchecker`` to your ``INSTALLED_
2121
There will now be an extra item on the settings panel of the wagtailadmin. Inside here you can enable or disable automated
2222
scanning (See below for more detail) or conduct a scan.
2323

24+
## OUTDATED, this branch works with django-rq ##
2425
For scans to be conducted, you must be running a celery daemon.
2526
You can run the celery worker with ``celery -A wagtaillinkchecker worker -l info``. See the `Celery Documentation <http://docs.celeryproject.org/en/latest/index.html>`_ for more information.
2627
For production you'll want to run celery as a daemon using something like systemd. See `Celery Daemonization <http://docs.celeryproject.org/en/latest/userguide/daemonizing.html#daemonizing>`_ for more information.
28+
## END ##
2729

2830
Conducting a scan
2931
-----------------

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
setup(
1212
name='wagtail-linkchecker',
13-
version='0.3.2',
13+
version='0.3.3',
1414
description="A tool to assist with finding broken links on your wagtail site.",
1515
long_description=readme,
16-
author='Liam Brenner',
17-
author_email='liam@takeflight.com.au',
18-
url='https://github.com/takeflight/wagtail-linkchecker',
16+
author='Samuel Mendes',
17+
author_email='smendes@twilio.com',
18+
url='https://github.com/TwilioDevEd/wagtail-linkchecker',
1919

2020
install_requires=[
21-
'django-rq>=1.1.0',
22-
'wagtail>=1.0',
21+
'django-rq>=1.2.0',
22+
'wagtail>=2.0',
2323
'requests>=2.9.1',
2424
],
2525
zip_safe=False,

wagtaillinkchecker/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def check_link(self):
141141
from wagtaillinkchecker.tasks import check_link
142142
queue_name = getattr(settings, 'RQ_DEFAULT_QUEUE', 'default')
143143
queue = django_rq.get_queue(
144-
queue_name, autocommit=True, async=True, default_timeout=360)
144+
queue_name, autocommit=True, is_async=True, default_timeout=360)
145145
queue.enqueue(check_link, self.pk)
146146

147147
@receiver(pre_delete, sender=Page)

0 commit comments

Comments
 (0)