memegen.extensions   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 0
1 1
import os
2
3 1
from flask_cors import CORS
0 ignored issues
show
introduced by
Unable to import 'flask_cors'
Loading history...
4
from flask_caching import Cache
0 ignored issues
show
introduced by
Unable to import 'flask_caching'
Loading history...
5
6
7
cors = CORS()
8
cache = Cache(config={
9
    'CACHE_TYPE': 'filesystem',
10
    'CACHE_DIR': 'data/cache/flask',
11
    # Heroku will cycle the filesystem every 24 hours and on every deploy
12
    'CACHE_DEFAULT_TIMEOUT': (60 if os.getenv('FLASK_ENV') == 'local'
13
                              else 99999),
14
})
15