Passed
Push — master ( 6d595d...70a01f )
by Guangyu
07:17 queued 15s
created

reports.fddfault   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 14
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A Reporting.__init__() 0 4 1
A Reporting.on_options() 0 3 1
A Reporting.on_get() 0 4 1
1
import falcon
2
import simplejson as json
3
4
5
class Reporting:
6
    @staticmethod
7
    def __init__():
8
        """"Initializes Reporting"""
9
        pass
10
11
    @staticmethod
12
    def on_options(req, resp):
13
        resp.status = falcon.HTTP_200
14
15
    @staticmethod
16
    def on_get(req, resp):
17
        result = {}
18
        resp.text = json.dumps(result)
19