summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/timezip.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-10-12 20:25:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-10-12 20:25:08 (GMT)
commitc56daf6743af30b38558199b9a45fdcd3c78e254 (patch)
tree4d97d559a89a5ab86e03cbecc67488a9ffad92d5 /abs/core/LinHES-config/timezip.py
parent9f63eca8f4daf93077ebc1eb5d5accb20b5507f2 (diff)
downloadlinhes_pkgbuild-c56daf6743af30b38558199b9a45fdcd3c78e254.zip
linhes_pkgbuild-c56daf6743af30b38558199b9a45fdcd3c78e254.tar.gz
linhes_pkgbuild-c56daf6743af30b38558199b9a45fdcd3c78e254.tar.bz2
LinHES-config: timezip.py always sync the music & gallery dir
Diffstat (limited to 'abs/core/LinHES-config/timezip.py')
-rwxr-xr-xabs/core/LinHES-config/timezip.py12
1 files 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"