references can be long too
This commit is contained in:
+2
-2
@@ -1314,7 +1314,7 @@ class Scheduler(MetaScheduler):
|
|||||||
"""
|
"""
|
||||||
from gluon.dal import Query
|
from gluon.dal import Query
|
||||||
sr, st = self.db.scheduler_run, self.db.scheduler_task
|
sr, st = self.db.scheduler_run, self.db.scheduler_task
|
||||||
if isinstance(ref, int):
|
if isinstance(ref, (int, long)):
|
||||||
q = st.id == ref
|
q = st.id == ref
|
||||||
elif isinstance(ref, str):
|
elif isinstance(ref, str):
|
||||||
q = st.uuid == ref
|
q = st.uuid == ref
|
||||||
@@ -1365,7 +1365,7 @@ class Scheduler(MetaScheduler):
|
|||||||
Experimental
|
Experimental
|
||||||
"""
|
"""
|
||||||
st, sw = self.db.scheduler_task, self.db.scheduler_worker
|
st, sw = self.db.scheduler_task, self.db.scheduler_worker
|
||||||
if isinstance(ref, int):
|
if isinstance(ref, (int, long)):
|
||||||
q = st.id == ref
|
q = st.id == ref
|
||||||
elif isinstance(ref, str):
|
elif isinstance(ref, str):
|
||||||
q = st.uuid == ref
|
q = st.uuid == ref
|
||||||
|
|||||||
Reference in New Issue
Block a user