Explorar el Código

Merge branch 'stable' into live

version-14
Rushabh Mehta hace 14 años
padre
commit
bd045b7384
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      cgi-bin/core/doctype/doctype/doctype.py
  2. +1
    -1
      cgi-bin/webnotes/utils/scheduler.py

+ 1
- 1
cgi-bin/core/doctype/doctype/doctype.py Ver fichero

@@ -83,7 +83,7 @@ class DocType:
from webnotes import defs
from webnotes.utils.transfer import in_transfer

if (not in_transfer) and getattr(defs,'developer_mode', 0):
if (not in_transfer) and getattr(webnotes.defs,'developer_mode', 0):
self.export_doc()
sql("delete from __DocTypeCache")


+ 1
- 1
cgi-bin/webnotes/utils/scheduler.py Ver fichero

@@ -138,7 +138,7 @@ class Scheduler:
# if recurring, update next_execution
if e['recurring']:
self.conn.sql("update Event set next_execution = addtime(now(), sec_to_time(%s))", e['interval'])
self.conn.sql("update Event set next_execution = addtime(now(), sec_to_time(%s)) where event=%s", (e['interval'], e['event']))
# else clear
else:


Cargando…
Cancelar
Guardar