removed unused code/debugs
This commit is contained in:
11
job.py
11
job.py
@@ -85,16 +85,6 @@ def GetJM_Message():
|
|||||||
msg=PA_JPA_JobManager_MessageobManager_Message.query.first()
|
msg=PA_JPA_JobManager_MessageobManager_Message.query.first()
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# ClearJM_Message: used in html to clear any message just displayed
|
|
||||||
################################################################################
|
|
||||||
def ClearJM_Message(id):
|
|
||||||
print(f"DDP: DID NOT clear JM message: {id}" )
|
|
||||||
return
|
|
||||||
PA_JobManager_Message.query.filter(PA_JobManager_Message.id==id).delete()
|
|
||||||
db.session.commit()
|
|
||||||
return
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Used in main html to show a red badge of # jobs to draw attention there are
|
# Used in main html to show a red badge of # jobs to draw attention there are
|
||||||
# active jobs being processed in the background
|
# active jobs being processed in the background
|
||||||
@@ -297,7 +287,6 @@ def joblog_search():
|
|||||||
for ent in ent_cursor:
|
for ent in ent_cursor:
|
||||||
jobs_cursor=db.engine.execute( f"select l.log, j.id, j.name, j.state, l.log_date from joblog l, job j where l.job_id = j.id and l.log ilike '%%{ent[0]}%%' order by l.log_date")
|
jobs_cursor=db.engine.execute( f"select l.log, j.id, j.name, j.state, l.log_date from joblog l, job j where l.job_id = j.id and l.log ilike '%%{ent[0]}%%' order by l.log_date")
|
||||||
|
|
||||||
print("HERE")
|
|
||||||
# turn DB output into json and return it to the f/e
|
# turn DB output into json and return it to the f/e
|
||||||
ret='[ '
|
ret='[ '
|
||||||
first_job=1
|
first_job=1
|
||||||
|
|||||||
Reference in New Issue
Block a user