InsertAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
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