Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
grapediadb committed Sep 12, 2018
1 parent 22ee508 commit b1c6a43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions command/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ def check_bio_features(request):
def check_login(request):
try:
build_file = os.path.join(settings.BASE_DIR, 'build')
with open(build_file, 'r') as content_file:
build = content_file.read()
build = "0"
if os.path.exists(build_file) and os.path.isfile(build_file):
with open(build_file, 'r') as content_file:
build = content_file.read()
version = command.__version__ + "." + build
user = request.user
current_compendium = {'id': None, 'compendium_name': None, 'compendium_nick_name': None}
Expand Down

0 comments on commit b1c6a43

Please sign in to comment.