Resolved issue113, avoiding a loophole in which the protection about @reloading a timed script could be circumvented.
This commit is contained in:
parent
3f703efc2d
commit
7eaf3d221c
3 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ def reload_modules():
|
|||
# these.
|
||||
unsafe_modules = []
|
||||
for scriptobj in ScriptDB.objects.get_all_scripts():
|
||||
if scriptobj.interval and scriptobj.typeclass_path:
|
||||
if (scriptobj.interval > -1) and scriptobj.typeclass_path:
|
||||
unsafe_modules.append(scriptobj.typeclass_path)
|
||||
unsafe_modules = list(set(unsafe_modules))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue