Page MenuHome
No OneTemporary

import glob
import json
import os
import time
from os import listdir
from os.path import isfile, join, abspath
from glob import iglob
from flask import flash
from flask import Flask
from flask import jsonify
from flask import redirect
from flask import render_template
from flask import request
from flask import url_for
from flask import make_response
from flask import Blueprint
from application import app
from application import http_server_request
from application import list_integers_string
from application import check_connection
from import jobs
# Name of the Blueprint
main = Blueprint('main', __name__)
def index():
if check_connection() == 'online':
return redirect(url_for('jobs.index'))
return "[error] Dashboard could not connect to server"
def tasks_index():
tasks = http_server_request('get', '/tasks')
tasks_list = []
for key, val in tasks.iteritems():
val['checkbox'] = '<input type="checkbox" value="' + key + '" />'
"DT_RowId": "worker_" + str(key),
"0": val['checkbox'],
"1": key,
"2": val['percentage_done'],
"3": val['priority'],
"4": val['status']
entries = json.dumps(tasks_list)
return render_template('tasks.html', entries=entries, title='tasks')
def about():
return render_template('about.html')

File Metadata

Mime Type
Tue, Sep 29, 11:39 AM (2 d)
Storage Engine
Storage Format
Raw Data
Storage Handle

Event Timeline