Skip to content
Snippets Groups Projects
Commit 4f5aeed2 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development

parents 8166ca84 191066a7
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ from flask_login import UserMixin, AnonymousUserMixin
from itsdangerous import BadSignature, TimedJSONWebSignatureSerializer
from time import sleep
from werkzeug.security import generate_password_hash, check_password_hash
from werkzeug.utils import secure_filename
from . import db, logger, login_manager
import os
import shutil
......@@ -318,6 +319,13 @@ class Job(db.Model):
"""
return '<Job %r>' % self.title
def create_secure_filename(self):
"""
Takes the job.title string nad cratesa a secure filename from this.
"""
filename = secure_filename(self.title)
return filename
def delete(self):
"""
Delete the job and its inputs and outputs from database and filesystem.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment