Permalink
Browse files

fix: list type value in owner config

  • Loading branch information...
1 parent 41e8735 commit e56dccdd87a870a0efbbfb0e6ee0e499cd1e4e32 @disabler committed Aug 26, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 data/locales/ru.txt
  2. +1 −1 kernel.py
View
@@ -490,7 +490,7 @@ Weather in %s:\nDate\t t%s\tWind\tClouds Погода в %s:\nДата\t t%s\tВ
\tCalm \tШтиль
Found: Найдено:
Weather forecast (short). Courtesy Gismeteo.Ru | http://www.gismeteo.ru Краткий прогноз погоды. Предоставлено Gismeteo.Ru | http://www.gismeteo.ru
-Weather forecast (full). Courtesy Gismeteo.Ru | http://www.gismeteo.ru Полный прогноз погоды. Предоставлено Gismeteo.Ru | http://www.gismeteo.ru'
+Weather forecast (full). Courtesy Gismeteo.Ru | http://www.gismeteo.ru Полный прогноз погоды. Предоставлено Gismeteo.Ru | http://www.gismeteo.ru
# file: plugins/google.py
%s site:en.wikipedia.org %s site:ru.wikipedia.org
View
@@ -313,7 +313,7 @@ def GT(item):
except: return gt_result
def PT(item,value):
- if value in [True,False,None]: value = str(value)
+ if value in [True,False,None] or isinstance(value,type([])): value = str(value)
setup = cur_execute_fetchone('select value from config_owner where option=%s;',(item,))
if setup: cur_execute('update config_owner set value=%s where option=%s', (value,item))
else: cur_execute('insert into config_owner values (%s,%s)', (item,value))

0 comments on commit e56dccd

Please sign in to comment.