From 952f29918e3292570536a3a7a5161c0b37eeed7c Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 25 Sep 2012 14:30:35 +0200 Subject: [PATCH] Hide git command when not using git Re-order automation --- couchpotato/core/_base/updater/__init__.py | 3 +++ couchpotato/core/plugins/automation/__init__.py | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/_base/updater/__init__.py b/couchpotato/core/_base/updater/__init__.py index 7aae0b2e..a304f9e7 100644 --- a/couchpotato/core/_base/updater/__init__.py +++ b/couchpotato/core/_base/updater/__init__.py @@ -1,4 +1,6 @@ from .main import Updater +from couchpotato.environment import Env +import os def start(): return Updater() @@ -33,6 +35,7 @@ config = [{ { 'name': 'git_command', 'default': 'git', + 'hidden': not os.path.isdir(os.path.join(Env.get('app_dir'), '.git')), 'advanced': True }, ], diff --git a/couchpotato/core/plugins/automation/__init__.py b/couchpotato/core/plugins/automation/__init__.py index 75e0d28f..b7b1ab28 100644 --- a/couchpotato/core/plugins/automation/__init__.py +++ b/couchpotato/core/plugins/automation/__init__.py @@ -5,13 +5,12 @@ def start(): config = [{ 'name': 'automation', - 'order': 30, + 'order': 101, 'groups': [ { 'tab': 'automation', 'name': 'automation', - 'label': 'Automation', - 'description': 'Minimal movie requirements', + 'label': 'Minimal movie requirements', 'options': [ { 'name': 'year',