summaryrefslogtreecommitdiff
path: root/squad_client/core/models.py
diff options
context:
space:
mode:
authormwasilew <milosz.wasilewski@linaro.org>2020-03-26 09:31:33 +0000
committerGitHub <noreply@github.com>2020-03-26 09:31:33 +0000
commit41356ac5afb8d91dbe0b96cb93ae0413a2328507 (patch)
treeaf520c002b3fe15ee9404eb6ee7380bd70f36745 /squad_client/core/models.py
parente99d9317a34153c20b82c6391ead1e41a0d8e9fe (diff)
parent1ef6bbc999e764f853dc7f2f15c4f9fe831f11c1 (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.py2
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