lint: Clean up E714 PEP-8 rule.

This commit is contained in:
Tim Abbott 2017-01-23 21:07:45 -08:00
parent d96f392147
commit a088cdaa04
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ def check_pep8(files):
# actually be cleaned up.
#
'E123', 'E126', 'E226', 'E241', 'E261', 'E302',
'E401', 'E501', 'E702', 'E711', 'E712', 'E713', 'E714',
'E401', 'E501', 'E702', 'E711', 'E712', 'E713',
#
# Each of these rules are ignored for the explained reason.

View File

@ -134,7 +134,7 @@ def home_real(request):
# Reset our don't-spam-users-with-email counter since the
# user has since logged in
if not user_profile.last_reminder is None:
if user_profile.last_reminder is not None:
user_profile.last_reminder = None
user_profile.save(update_fields=["last_reminder"])