From c56daf6743af30b38558199b9a45fdcd3c78e254 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 12 Oct 2012 15:25:08 -0500 Subject: LinHES-config: timezip.py always sync the music & gallery dir --- abs/core/LinHES-config/timezip.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/abs/core/LinHES-config/timezip.py b/abs/core/LinHES-config/timezip.py index c6c68d1..adf7d1b 100755 --- a/abs/core/LinHES-config/timezip.py +++ b/abs/core/LinHES-config/timezip.py @@ -352,9 +352,9 @@ def insertvars(): cursor.execute("INSERT INTO settings (value,data,hostname) VALUES ('MusicLocation',(%s),(%s))",(musicdir,thishostname)) print "inserting musicdir" else: - no_update("musicdir") - #cursor.execute("update settings set data=(%s) where hostname=(%s) and value='MusicLocation'",(musicdir,thishostname)) - #print "updating musicdir" + #no_update("musicdir") + cursor.execute("update settings set data=(%s) where hostname=(%s) and value='MusicLocation'",(musicdir,thishostname)) + print "updating musicdir" if ( filenametemplate != "" ): cursor.execute("select * from settings where value='FilenameTemplate' and hostname=(%s)",(thishostname)) @@ -374,9 +374,9 @@ def insertvars(): cursor.execute("INSERT INTO settings (value,data,hostname) VALUES ('GalleryDir',(%s),(%s))",(gallerydir,thishostname)) print "inserting gallerydir" else: - no_update("gallerydir") - #cursor.execute("update settings set data=(%s) where hostname=(%s) and value='GalleryDir'",(gallerydir,thishostname)) - #print "updating gallerydir" + #no_update("gallerydir") + cursor.execute("update settings set data=(%s) where hostname=(%s) and value='GalleryDir'",(gallerydir,thishostname)) + print "updating gallerydir" -- cgit v0.12