Conditions | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 0 |
1 | 1 | from collections import OrderedDict |
|
18 | @blueprint.route("") |
||
19 | @flaskparser.use_kwargs(FILTER) |
||
20 | 1 | @cache.cached(unless=lambda: bool(request.args)) |
|
21 | 1 | def get(name): |
|
22 | """Get a list of all matching aliases.""" |
||
23 | 1 | if name: |
|
24 | return redirect(route('.get_with_name', name=name)) |
||
25 | else: |
||
26 | 1 | return _get_aliases() |
|
27 | |||
49 |