Total Complexity | 1 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 0 |
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 |