Passed
Push — master ( 23a255...d18062 )
by Mingyu
45s
created

app.views.base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A BaseResource.__init__() 0 5 1
1
import arrow
2
from flask_restful import Resource
3
4
5
class BaseResource(Resource):
6
    def __init__(self):
7
        self.utcnow = arrow.utcnow()
8
        self.kstnow = self.utcnow.to('Asia/Seoul')
9
        self.iso8601_formatted_utcnow = self.utcnow.isoformat()
10
        self.iso8601_formatted_kstnow = self.kstnow.isoformat()
11