Skip to content

Commit

Permalink
Fixing api issue
Browse files Browse the repository at this point in the history
  • Loading branch information
villanueval committed May 16, 2024
1 parent 40a0d60 commit fe4d0c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def homepage(team=None):
username = request.form.get('username', '', type=str)
password = request.form.get('password', '', type=str)
query = "SELECT user_id, username, user_active, full_name FROM users WHERE username = %(username)s AND pass = MD5(%(password)s)"
user = run_query(query, {'username': username, 'password': password}, cur=cur)
user = run_query(query, {'username': username.lower(), 'password': password}, cur=cur)
logger.info(user)
if len(user) == 1:
logger.info(user[0]['user_active'])
Expand Down
2 changes: 1 addition & 1 deletion web_app/osprey_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def api_update_project_details(project_alias=None):
check_info = "Query for filename not found"
else:
query = res[0]['settings_details']
res = query_database_insert(query, {'file_id': file_id,}, cur=cur)
res = run_query(query, {'file_id': file_id,}, cur=cur)
logger.info(res)
# Get results for file query
if res[0]['result'] == "1":
Expand Down
2 changes: 1 addition & 1 deletion web_app/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2 class="card-title">Digitization of the JPC Archive is Now in Production</h2>
<h2 class="card-title">A Photoshoot with 25,000 Mussels</h2>

<p>We are digitizing about 25,000 lots, with up to three individuals per lot,
adding over 120,000 images of freshwater mussels - otherwise known as the Mollusca order Unionidae.</p>
adding over 120,000 images of freshwater mussels - otherwise known as the Mollusca order Unionoida.</p>
<a href="{{ url_for('dashboard', project_alias = 'nmnh_unionoida') }}" class="btn btn-sm btn-outline-primary" title="Link to the Unionoida Project Dashboard">Unionoida Project Dashboard</a>

</div>
Expand Down

0 comments on commit fe4d0c9

Please sign in to comment.