diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-27 10:58:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-27 10:58:38 +0100 |
| commit | 38fc6fa35ca4545a6068aaa759359c271c9f5197 (patch) | |
| tree | 7a473d575f04223b57cc103a97a341be9d4bb55a /api/opendc/util/path_parser.py | |
| parent | 89cba029a37e79b7c730caffc04ce547cda4837c (diff) | |
| parent | 839b332a2b9d7dcb5536c080e822f85447b615de (diff) | |
Merge pull request #50 from atlarge-research/bug/bson-objectid
Use BSON ObjectId for model identifiers
Diffstat (limited to 'api/opendc/util/path_parser.py')
| -rw-r--r-- | api/opendc/util/path_parser.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/api/opendc/util/path_parser.py b/api/opendc/util/path_parser.py index a8bbdeba..c8452f20 100644 --- a/api/opendc/util/path_parser.py +++ b/api/opendc/util/path_parser.py @@ -31,9 +31,6 @@ def parse(version, endpoint_path): for (name, value) in zip(path, endpoint_path_parts): if name.startswith('{'): - try: - parameters[name.strip('{}')] = int(value) - except: - parameters[name.strip('{}')] = value + parameters[name.strip('{}')] = value return '{}/{}'.format(version, '/'.join(path)), parameters |
