diff --git a/src/dokumentor/celery.py b/src/dokumentor/celery.py index e313ac6..207230d 100644 --- a/src/dokumentor/celery.py +++ b/src/dokumentor/celery.py @@ -6,17 +6,3 @@ from django.conf import settings # noqa app = Celery('dokumentor') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks() - - -# @app.on_after_configure.connect -# def setup_periodic_tasks(sender, **kwargs): -# # Calls test('hello') every 10 seconds. -# sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') -# -# # Calls test('world') every 30 seconds -# sender.add_periodic_task(30.0, test.s('world'), expires=10) -# -# -# @app.task -# def test(arg): -# print(arg) diff --git a/static/js/client/search-external-api.js b/static/js/client/search-external-api.js index b21a617..8af0288 100644 --- a/static/js/client/search-external-api.js +++ b/static/js/client/search-external-api.js @@ -61,6 +61,7 @@ $(document).ready(function() { function changeDataInInputs(data) { if (data.type === "LEGAL"|| data.type === "INDIVIDUAL" ) { + // console.log(data); if (data.name) { clientName.val(join([data.opf && data.opf.short || "", data.name.short || data.name.full], " ")); clientNameShort.val(data.name.short);