diff options
author | cedricbonhomme <devnull@localhost> | 2012-10-22 00:25:00 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-10-22 00:25:00 +0200 |
commit | 6a2218acb0b1dfc068473ed140b4308af283a3f8 (patch) | |
tree | 89e8f2ac17500a21972f8b57fa8e51691d821a05 /source/mongodb.py | |
parent | Authentication is now required for all pages. (diff) | |
download | newspipe-6a2218acb0b1dfc068473ed140b4308af283a3f8.tar.gz newspipe-6a2218acb0b1dfc068473ed140b4308af283a3f8.tar.bz2 newspipe-6a2218acb0b1dfc068473ed140b4308af283a3f8.zip |
Bug fix in drop base function. The wrong database name was used.
Diffstat (limited to 'source/mongodb.py')
-rw-r--r-- | source/mongodb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index 64bd9218..95d7560c 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -227,11 +227,11 @@ class Articles(object): return collections # Functions on database - def drop_database(self): + def drop_database(self, db_name="pyaggr3g470r"): """ Drop all the database """ - self.connection.drop_database('pyaggr3g470r') + self.connection.drop_database(db_name) if __name__ == "__main__": |