aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-05-12 11:31:03 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-05-12 11:31:03 +0530
commit303dc6e44fb60979289ec51c8cce6f3756d7416b (patch)
treef302def199fa7ab6cb4d80089ce4122ac28f2e66
parent250d8c18777c7e0ba87ec4334d3b316d4e6bd0dd (diff)
update
-rw-r--r--web/app/main.py2
-rw-r--r--web/app/templates/home.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/web/app/main.py b/web/app/main.py
index e834c0c..d48eb04 100644
--- a/web/app/main.py
+++ b/web/app/main.py
@@ -21,7 +21,7 @@ main = Blueprint('main', __name__)
@login_required
def home():
jobs = job_manager.get_jobs()
- completed_jobs = TinyDB('jobs.json').all()
+ completed_jobs = TinyDB('app/jobs.json').all()
return render_template('home.html', user=current_user, states=states, acts=act_list, completed_jobs=completed_jobs, jobs=jobs)
@main.route('/logout')
diff --git a/web/app/templates/home.html b/web/app/templates/home.html
index 7caff64..0ecad44 100644
--- a/web/app/templates/home.html
+++ b/web/app/templates/home.html
@@ -65,7 +65,7 @@
{% for job in completed_jobs %}
<tr>
<td>{{ job['name'] }}</td>
- <td>COMPLETED</td>
+ <td>JobStatus.COMPLETED</td>
<td><a href="{{ url_for('main.download_output', filename=job['name']) }}">Download</a></td>
</tr>
{% endfor %}
@@ -73,7 +73,7 @@
<tr>
<td>{{ job.args[0] }}</td>
<td>{{ job._status }}</td>
- <td><a href="{{ url_for('main.download_output', filename=job.args[0]) }}">Download</a></td>
+ <td>Not Available</td>
</tr>
{% endfor %}
</tbody>