Skip to content

Commit

Permalink
Fix for Issue #55 - the md5 files not generating.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Mateescu committed Mar 27, 2015
1 parent e0393ef commit d1c1042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion discogsparser.py
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 1 addition & 3 deletions mongodbexporter.py
Expand Up @@ -152,9 +152,7 @@ def connect(self, mongo_uri):
u = urlparse.urlparse(mongo_uri)
if u.scheme == 'file':
path = u.path
if '?' in u.path:
path, self._options = u.path.split('?', 1)
self._options = urlparse.parse_qs(self._options) if self._options else {}
self._options = urlparse.parse_qs(u.query) if u.query else {}
path = u.netloc + path
self.db = _MongoImportFileSet(path)
if 'uniq' in self._options and 'md5' in self._options['uniq']:
Expand Down

0 comments on commit d1c1042

Please sign in to comment.