aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/mongodb.py')
-rw-r--r--source/mongodb.py4
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__":
bgstack15