9aea55e3d1
Ignored only the rules about continuing / hanging indentation. Also, added __init__.py to tests so that pylint discovers them. (I don't buy pytest's BS about installing your package.)
8 lines
172 B
Python
8 lines
172 B
Python
from szurubooru.func import cache
|
|
from szurubooru.rest import middleware
|
|
|
|
|
|
@middleware.pre_hook
|
|
def process_request(ctx):
|
|
if ctx.method != 'GET':
|
|
cache.purge()
|