projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[] and id=
[rainbowstream.git]
/
rainbowstream
/
db.py
diff --git
a/rainbowstream/db.py
b/rainbowstream/db.py
index 1714005d77a4154d9052144b595e5b978a855640..8f4ce40491a6c82c7b294cbe6b73116f7a86e2e6 100644
(file)
--- a/
rainbowstream/db.py
+++ b/
rainbowstream/db.py
@@
-12,8
+12,9
@@
class RainbowDB():
"""
Init DB
"""
- if not os.path.isfile('rainbow.db'):
- init_db()
+ if os.path.isfile('rainbow.db'):
+ os.system('rm -rf rainbow.db')
+ init_db()
self.engine = create_engine('sqlite:///rainbow.db', echo=False)