Skip to content
Snippets Groups Projects
Commit 010fda7b authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

silly indendation mistake

parent e2343494
No related branches found
No related tags found
No related merge requests found
......@@ -266,22 +266,22 @@ arguments = 1 {stat_study} {rand}
queue 1
'''
def get_head_template(filename='head.tmp'):
return _get_template(filename,QUEUE_TEMPLATE)
def get_head_multi_template(filename='head.multi.tmp'):
return _get_template(filename,QUEUE_MULTI_TEMPLATE)
def get_queue_template(filename='queue.tmp'):
return _get_template(filename,QUEUE_TEMPLATE)
def get_queue_multi_template(filename='queue.multi.tmp'):
return _get_template(filename,QUEUE_MULTI_TEMPLATE)
def _get_template(filename, template):
'''
Only to be used by get_NN_template()
'''
import os
if os.path.exists(filename):
return file(filename).read()
else:
return template
def get_head_template(filename='head.tmp'):
return _get_template(filename,QUEUE_TEMPLATE)
def get_head_multi_template(filename='head.multi.tmp'):
return _get_template(filename,QUEUE_MULTI_TEMPLATE)
def get_queue_template(filename='queue.tmp'):
return _get_template(filename,QUEUE_TEMPLATE)
def get_queue_multi_template(filename='queue.multi.tmp'):
return _get_template(filename,QUEUE_MULTI_TEMPLATE)
def _get_template(filename, template):
'''
Only to be used by get_NN_template()
'''
import os
if os.path.exists(filename):
return file(filename).read()
else:
return template
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