Permalink
Browse files

two small cosmetic changes

  • Loading branch information...
rmartinjak committed Nov 2, 2012
1 parent 460ef01 commit d026aac41c7c7c2fdb0dbdfe7cc53f5d1063f4b3
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask_version/admin.py
View
@@ -12,7 +12,7 @@
@with_lock
def users(reset=None):
template_dict = {}
- if reset is not None:
+ if reset:
from random import choice
import string
chara = string.letters + string.digits
@@ -47,7 +47,7 @@ def suspend_user(user):
@admin_required
@with_lock
def del_user(user):
- if not user == 'admin':
+ if user != 'admin':
try:
g.notebook.user_manager().delete_user(user)
except KeyError:

0 comments on commit d026aac

Please sign in to comment.