diff options
author | mwasilew <milosz.wasilewski@linaro.org> | 2020-03-26 09:31:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 09:31:33 +0000 |
commit | 41356ac5afb8d91dbe0b96cb93ae0413a2328507 (patch) | |
tree | af520c002b3fe15ee9404eb6ee7380bd70f36745 /squad_client/core/models.py | |
parent | e99d9317a34153c20b82c6391ead1e41a0d8e9fe (diff) | |
parent | 1ef6bbc999e764f853dc7f2f15c4f9fe831f11c1 (diff) |
Merge pull request #21 from chaws/improve-testing
Improve testing
Diffstat (limited to 'squad_client/core/models.py')
-rw-r--r-- | squad_client/core/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/squad_client/core/models.py b/squad_client/core/models.py index d9cdf45..69c9643 100644 --- a/squad_client/core/models.py +++ b/squad_client/core/models.py @@ -42,7 +42,7 @@ class SquadObject: obj = klass() attrs = klass.attrs if len(klass.attrs) else [attr for attr in result.keys()] for attr in attrs: - setattr(obj, attr.replace(' ', '_').replace('/','_').replace('-','_'), result[attr]) + setattr(obj, attr.replace(' ', '_').replace('/', '_').replace('-', '_'), result[attr]) objects[obj.__id__] = obj return objects |