Skip to content

Add public function to access _updateResponse function #200

Description

@ritik-tomar

_updateResponse function is used to update the responses of every function in MDCS. It is a protected function currently being utilized outside base.py directly.
Instead, create a wrapper function which should be public that can be utilized outside base.py.

def _updateResponse(self, resp, **kwargs):
if (resp is None):
return resp
for k in kwargs:
resp[k] = kwargs[k]
return resp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions