mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-12-18 10:02:30 -05:00
brozzler web console initial fiddling
This commit is contained in:
parent
dff4149185
commit
1ca17f204b
5 changed files with 95 additions and 0 deletions
16
webconsole/brozzler-webconsole.py
Normal file
16
webconsole/brozzler-webconsole.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import flask
|
||||
import rethinkstuff
|
||||
|
||||
app = flask.Flask(__name__)
|
||||
|
||||
r = rethinkstuff.Rethinker(["wbgrp-svc020", "wbgrp-svc035", "wbgrp-svc036"],
|
||||
db="archiveit_brozzler")
|
||||
|
||||
@app.route("/")
|
||||
def jobs():
|
||||
return flask.render_template("jobs.html", jobs=r.table("jobs").run())
|
||||
# return "\n".join(("{} ({})".format(j["id"], j["status"]) for j in jobs))
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0", port=8081, debug=True)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue