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

reports.fddfault.Reporting.on_options()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nop 2
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