commented out sleep which I use for testing of active jobs/job refresh page, and re-title the job list html
This commit is contained in:
4
job.py
4
job.py
@@ -20,7 +20,7 @@ class Joblog(db.Model):
|
||||
return "<id: {}, job_id: {}, log: {}".format(self.id, self.job_id, self.log )
|
||||
|
||||
################################################################################
|
||||
# Class describing Action in the database, and via sqlalchemy, connected to the DB as well
|
||||
# Class describing Job in the database, and via sqlalchemy, connected to the DB as well
|
||||
################################################################################
|
||||
class Job(db.Model):
|
||||
id = db.Column(db.Integer, db.Sequence('joblog_id_seq'), primary_key=True )
|
||||
@@ -74,7 +74,7 @@ def NewJob(name, num_passes="1", num_files="0", wait_for=None ):
|
||||
################################################################################
|
||||
@app.route("/jobs", methods=["GET"])
|
||||
def jobs():
|
||||
page_title='Job actions'
|
||||
page_title='Job list'
|
||||
jobs = Job.query.all()
|
||||
return render_template("jobs.html", jobs=jobs, page_title=page_title)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user