Skip to content
Snippets Groups Projects
Commit 78ac0afb authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

minor

parent 6d614728
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019 Henrik tom Wörden
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
...@@ -78,6 +79,7 @@ class AbstractCFood(object): ...@@ -78,6 +79,7 @@ class AbstractCFood(object):
# move to api? # move to api?
def set_property(entity, prop, value): def set_property(entity, prop, value):
# TODO only do something when it is necessary? # TODO only do something when it is necessary?
if isinstance(prop, db.Entity): if isinstance(prop, db.Entity):
name = prop.name name = prop.name
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment