GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 661b81...e197d6 )
by Chathan
01:01
created

installed_apps()   A

Complexity

Conditions 2

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 14
rs 9.4285
cc 2
1
from django.conf import settings
2
3
4
def installed_apps(request):
5
    check_installed = {
6
        # short name: full app name
7
        'notifications': 'simple_forums.notifications',
8
    }
9
10
    context = {
11
        'installed_apps': settings.INSTALLED_APPS,
12
    }
13
14
    for app, full_name in check_installed.items():
15
        context['%s_installed' % app] = full_name in settings.INSTALLED_APPS
16
17
    return context
18