prod
Dmitriy Shesterkin 9 years ago
parent da450274be
commit fe9959decc
  1. 14
      src/dokumentor/celery.py
  2. 1
      static/js/client/search-external-api.js

@ -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)

@ -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);

Loading…
Cancel
Save