mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add scheduler test.
This commit is contained in:
		@@ -7,7 +7,7 @@ import json
 | 
			
		||||
 | 
			
		||||
@scheduler.route('/')
 | 
			
		||||
@login_required
 | 
			
		||||
def schedule():
 | 
			
		||||
def scheduler():
 | 
			
		||||
    job = {
 | 
			
		||||
        'creator': current_user.id,
 | 
			
		||||
        'files': ['file_1', 'file_2', 'file_3'],
 | 
			
		||||
@@ -18,4 +18,4 @@ def schedule():
 | 
			
		||||
    }
 | 
			
		||||
    job = background_scheduler.add_job(print, trigger='date', args=[job])
 | 
			
		||||
    print(job)
 | 
			
		||||
    return 'job'
 | 
			
		||||
    return render_template('scheduler/index.html.j2', title='Scheduler')
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										7
									
								
								app/templates/scheduler/index.html.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/templates/scheduler/index.html.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
{% extends "base.html.j2" %}
 | 
			
		||||
 | 
			
		||||
{% block page_content %}
 | 
			
		||||
<div class="col s12">
 | 
			
		||||
 | 
			
		||||
</div>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user