Skip to content

Commit d1c1042

Browse files
author
Philip Mateescu
committed
Fix for Issue philipmat#55 - the md5 files not generating.
1 parent e0393ef commit d1c1042

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: discogsparser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by

Diff for: mongodbexporter.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def connect(self, mongo_uri):
152152
u = urlparse.urlparse(mongo_uri)
153153
if u.scheme == 'file':
154154
path = u.path
155-
if '?' in u.path:
156-
path, self._options = u.path.split('?', 1)
157-
self._options = urlparse.parse_qs(self._options) if self._options else {}
155+
self._options = urlparse.parse_qs(u.query) if u.query else {}
158156
path = u.netloc + path
159157
self.db = _MongoImportFileSet(path)
160158
if 'uniq' in self._options and 'md5' in self._options['uniq']:

0 commit comments

Comments
 (0)