Skip to content

Commit

Permalink
Replaced a deprecated pymongo function
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthenext committed Oct 19, 2017
1 parent 6a19cda commit 1d8d066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage.py
Expand Up @@ -34,7 +34,7 @@ def setup():
url_collection = client[settings.DB][settings.URL_COLLECTION]
url_collection.delete_many({})

url_collection.ensure_index([('_id', HASHED)])
url_collection.create_index([('_id', HASHED)])


def get_new_id(client):
Expand Down

0 comments on commit 1d8d066

Please sign in to comment.