Permalink
Browse files

add drop_db command to popcorn-server

  • Loading branch information...
1 parent 968f876 commit c86667aa100e1792a390704f606c0b9f9a70ca2b @mapleoin mapleoin committed Sep 21, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 server/popcorn-server
@@ -27,7 +27,7 @@ import argparse
import sys
from popcorn import app
-from popcorn.database import init_db
+from popcorn.database import init_db, drop_db
parser = argparse.ArgumentParser(description="Popcorn server")
parser.add_argument('command', nargs='?', default=None)
@@ -37,6 +37,8 @@ args = parser.parse_args()
if args.command == 'init_db':
init_db()
+elif args.command == 'drop_db':
+ drop_db()
else:
if args.debug:
app.run(debug=True)

0 comments on commit c86667a

Please sign in to comment.