Compare commits

..

No commits in common. "eb7f85d966ef7da11f41426b336ddc5702cec04f" and "32a4fd05e3a4fe248586a519e1c56fde1da01420" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View file

@ -173,7 +173,8 @@ class Db(Queries):
digest.update(password.encode("utf-8"))
res = super().try_login(username=username, hash=digest.hexdigest())
if not res:
return None
res = self.fetch_user_status(sid=res.status_id)
raise LoginError(res.name)
return self.create_key(uid=res.id, name="web session", ttl=ttl)

View file

@ -20,12 +20,10 @@
<label for="filename">File</label>
<span name="filename">{{ctx.db.fetch_file(ctx.uid, job.file_id).filename or "it's a secret"}}</span>
</div>
{% if job.finished_at and job.started_at %}
<div class="job-runtime u-flex">
<label for="runtime">Runtime</label>
<span name="Runtime">{{ (datetime.fromisoformat(job.finished_at) - datetime.fromisoformat(job.started_at)) }}</span>
</div>
{% endif %}
</div>
<div class="controls u-flex u-ml-auto">
{% if ctx.uid %}