Extend CMS detection for Urwahl3000 theme (#96)

* Extend check for Urwahl3000 theme
* Remove unused import
This commit is contained in:
Marian Steinbach 2018-12-05 21:27:45 +01:00 committed by GitHub
parent d0e3a4210f
commit deff95306b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -3,8 +3,6 @@ Checks the 'generator' meta tag and page content properties
to detect well-known content management systems, themes etc.
"""
import logging
from checks.abstract_checker import AbstractChecker
class Checker(AbstractChecker):
@ -74,7 +72,8 @@ class Checker(AbstractChecker):
elif 'gruenes-internet.de' in page_content['content']:
generator = 'wordpress-gruenes-internet'
elif 'Urwahl3000' in page_content['content']:
elif ('Urwahl3000' in page_content['content'] or
'/themes/urwahl3000' in page_content['content']):
generator = 'wordpress-urwahl'
elif ('josephknowsbest' in page_content['content'] or