InsertAction.run()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
from lib.actions import BaseAction
2
3
4
class InsertAction(BaseAction):
5
    def run(self, table, payload):
6
        self.client.table = table  # pylint: disable=no-member
7
        response = self.client.insert(payload)  # pylint: disable=no-member
8
        return response
9