Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

two small cosmetic changes

  • Loading branch information...
commit d026aac41c7c7c2fdb0dbdfe7cc53f5d1063f4b3 1 parent 460ef01
@rmartinjak rmartinjak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 flask_version/admin.py
View
4 flask_version/admin.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.