mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Rework notification system
This commit is contained in:
		@@ -61,7 +61,7 @@ def service(service):
 | 
			
		||||
            os.makedirs(absolut_dir)
 | 
			
		||||
        except OSError:
 | 
			
		||||
            job.delete()
 | 
			
		||||
            flash('Internal Server Error')
 | 
			
		||||
            flash('Internal Server Error', 'job')
 | 
			
		||||
            return make_response({'redirect_url': url_for('services.service',
 | 
			
		||||
                                                          service=service)},
 | 
			
		||||
                                 500)
 | 
			
		||||
@@ -74,9 +74,8 @@ def service(service):
 | 
			
		||||
                db.session.add(job_input)
 | 
			
		||||
            job.status = 'submitted'
 | 
			
		||||
            db.session.commit()
 | 
			
		||||
            job_url = url_for('jobs.job', job_id=job.id)
 | 
			
		||||
            flash('<i class="left material-icons">work</i>'
 | 
			
		||||
                  '[<a href="{}">{}</a>] added'.format(job_url, job.title))
 | 
			
		||||
            url = url_for('jobs.job', job_id=job.id)
 | 
			
		||||
            flash('[<a href="{}">{}</a>] added'.format(url, job.title), 'job')
 | 
			
		||||
            return make_response(
 | 
			
		||||
                {'redirect_url': url_for('jobs.job', job_id=job.id)}, 201)
 | 
			
		||||
    return render_template('services/{}.html.j2'.format(service),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user