Hide git command when not using git

Re-order automation
This commit is contained in:
Ruud committed 2012-09-25 14:30:35 +02:00
1 parent 08ae51dbe6
commit 952f29918e
2 files changed
+5 -3

No files matched your search

@@ -1,4 +1,6 @@
from .main import Updater from .main import Updater
from couchpotato.environment import Env
import os
def start(): def start():
return Updater() return Updater()
@@ -33,6 +35,7 @@ config = [{
{ {
'name': 'git_command', 'name': 'git_command',
'default': 'git', 'default': 'git',
'hidden': not os.path.isdir(os.path.join(Env.get('app_dir'), '.git')),
'advanced': True 'advanced': True
}, },
], ],
@@ -5,13 +5,12 @@ def start():
config = [{ config = [{
'name': 'automation', 'name': 'automation',
'order': 30, 'order': 101,
'groups': [ 'groups': [
{ {
'tab': 'automation', 'tab': 'automation',
'name': 'automation', 'name': 'automation',
'label': 'Automation', 'label': 'Minimal movie requirements',
'description': 'Minimal movie requirements',
'options': [ 'options': [
{ {
'name': 'year', 'name': 'year',