Merge pull request #43 from sartography/user-lookup-fix

Two bug fixes:
This commit is contained in:
Dan Funk 2021-04-02 12:20:11 -04:00 committed by GitHub
commit cc1b602e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ def index():
@app.route('/user_studies/<uva_id>', methods=['GET'])
def user_studies(uva_id):
if uva_id == 'all':
return redirect(f"/")
return redirect(BASE_HREF + "/")
studies = db.session.query(Study).filter(Study.NETBADGEID == uva_id).order_by(Study.DATE_MODIFIED.desc()).all()
return render_study_template(studies)

View File

@ -18,7 +18,7 @@
</p>
<p>
<label>User Studies</label>
<select name="uva_id" id="uva_id" onclick="selectStudies()">
<select name="uva_id" id="uva_id" onchange="selectStudies()">
<option value="">Select User</option>
<option value="all">All Users</option>
{% if users %}