Commit b3de5f00 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

signup layout fixed

parent bb27521a
...@@ -89,14 +89,10 @@ def app(): ...@@ -89,14 +89,10 @@ def app():
ah = ad.ApplicationDao() ah = ad.ApplicationDao()
if request.method == 'GET': if request.method == 'GET':
dh = dd.DeviceDao() dh = dd.DeviceDao()
appkey = None
if 'appkey' in session: session['appkey'] = request.args.get('appkey')
appkey = session['appkey']
else:
appkey = request.args.get('appkey')
session['appkey'] = request.args.get('appkey')
app = ah.get(appkey) app = ah.get(session['appkey'])
devs = dh.get_list(app[1][1]) devs = dh.get_list(app[1][1])
print('devs : ', devs) print('devs : ', devs)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="col-md-6 col-md-offset3"> <div class="col-md-6 col-md-offset-3">
<form action="signup" method="post"> <form action="signup" method="post">
<div class="form-group"> <div class="form-group">
<label>Username:</label><br> <label>Username:</label><br>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment