projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sqlalchemy bug
[rainbowstream.git]
/
rainbowstream
/
draw.py
diff --git
a/rainbowstream/draw.py
b/rainbowstream/draw.py
index ff931ce373c8bd2e710c49b0a8c3f5783f8d1fc2..148fc5884456378dfa81f376f6e8bec921510f39 100644
(file)
--- a/
rainbowstream/draw.py
+++ b/
rainbowstream/draw.py
@@
-14,7
+14,6
@@
from .config import *
from .db import *
db = RainbowDB()
from .db import *
db = RainbowDB()
-cur_theme = None
def check_theme():
"""
def check_theme():
"""
@@
-22,17
+21,17
@@
def check_theme():
"""
exists = db.theme_query()
themes = [t.theme_name for t in exists]
"""
exists = db.theme_query()
themes = [t.theme_name for t in exists]
- if c
ur_theme
!= themes[0]:
- c
ur_theme
= themes[0]
+ if c
['theme']
!= themes[0]:
+ c
['theme']
= themes[0]
# Determine path
# Determine path
- if c
ur_theme == 'user
':
+ if c
['theme'] == 'custom
':
config = os.environ.get(
'HOME',
os.environ.get(
'USERPROFILE',
'')) + os.sep + '.rainbow_config.json'
else:
config = os.environ.get(
'HOME',
os.environ.get(
'USERPROFILE',
'')) + os.sep + '.rainbow_config.json'
else:
- config = 'rainbowstream/colorset/'+c
ur_theme
+'.json'
+ config = 'rainbowstream/colorset/'+c
['theme']
+'.json'
# Load new config
data = load_config(config)
if data:
# Load new config
data = load_config(config)
if data: