Skip to content

Commit

Permalink
wip - didn't really mean to commit this to pride branch but i'm havin…
Browse files Browse the repository at this point in the history
…g problems with git. it won't deploy anyway i think.
  • Loading branch information
colin-combe authored and sureshhewabi committed Dec 6, 2023
1 parent b6aa5ab commit 661e7a7
Show file tree
Hide file tree
Showing 6 changed files with 244,175 additions and 383 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name = "pypi"
setuptools = "57.5.0"
flask = "==2.2.3"
flask_cors = "*"
Werkzeug = ">=2.2,<3.0"
#psycopg2 = "*"
psycopg2-binary = "2.9.5"
python-dotenv = "*"
Expand Down
746 changes: 369 additions & 377 deletions Pipfile.lock

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions static/pride.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,28 @@

#expDropdownPlaceholder > div > ul > li:nth-child(8) {
display: none !important;
}

/*#main > div.controls {*/
/* display: none !important;*/
/*}*/

/*#main > div.mainContent {*/
/* bottom:0px;*/
/*}*/

#alternatives{
display: none !important;
}

/*#bottomDivTopOnly {*/
/* display: none !important;*/
/*}*/

#displayOptionsPlaceholder {
display: none !important;
}

#xiNetButtonBar > span.layoutLabel.noBreak.sectionDividerLeft {
border-left: 0;
}
243,779 changes: 243,777 additions & 2 deletions static/xiview.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions templates/datasets.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<nav>
<div class="nav-wrapper teal offset-s2">
{# <div class="col s2 offset-s2">#}
<a href="#" class="brand-logo">Cross-Linking Datasets</a>
<a href="#" class="brand-logo">Crosslinking Datasets</a>
{# </div>#}
</div>
</nav>
Expand All @@ -28,7 +28,7 @@
{% for d in datasets %}
<tr>
<td>
<a href="dataset?pxid={{ d[0] }}">{{ d[0] }}</a>
<a href="network.html?project={{ d[0] }}">{{ d[0] }}</a>
</td>
<td>
<p>{{ d[1] }}</p>
Expand Down
4 changes: 2 additions & 2 deletions xi_web_api/pride_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import os
import logging.config

logging.config.fileConfig('logging.ini')
# logging.config.fileConfig('logging.ini')
logger = logging.getLogger(__name__)


Expand Down Expand Up @@ -112,7 +112,7 @@ def get_data():
pxid = request.args.get('project')
if pxid is None:
return jsonify({"error": "No project id provided"}), 400
elif not re.match(r'^[a-zA-Z0-9]+$', pxid):
elif not re.match(r'^[a-zA-Z0-9_]+$', pxid):
return jsonify({"error": "Invalid project id"}), 400

file = request.args.get('file')
Expand Down

0 comments on commit 661e7a7

Please sign in to comment.