Fixed formatting
This commit is contained in:
parent
9994a22f16
commit
e80639c859
|
@ -62,7 +62,7 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
directory = options['directory'] or ''
|
directory = options['directory'] or ''
|
||||||
path = os.path.join(directory, filename)
|
path = os.path.join(directory, options['filename'])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
|
|
|
@ -198,7 +198,7 @@ class SessionKnobManager(models.Manager):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_knob_min_max_tunability(session, tunable_only=False):
|
def get_knob_min_max_tunability(session, tunable_only=False):
|
||||||
# Returns a dict of the knob
|
# Returns a dict of the knob
|
||||||
filter_args=dict(session=session)
|
filter_args = dict(session=session)
|
||||||
if tunable_only:
|
if tunable_only:
|
||||||
filter_args['tunable'] = True
|
filter_args['tunable'] = True
|
||||||
session_knobs = SessionKnob.objects.filter(**filter_args).values(
|
session_knobs = SessionKnob.objects.filter(**filter_args).values(
|
||||||
|
|
Loading…
Reference in New Issue