diff options
author | zsloan | 2015-07-20 21:21:02 +0000 |
---|---|---|
committer | zsloan | 2015-07-20 21:21:02 +0000 |
commit | afa09962dcdfcd172d98339be9d70187bdb22d61 (patch) | |
tree | 1dd8f79374c87f223f716d994c4b04f9b390a161 /wqflask/wqflask/model.py | |
parent | 28d88c740c52386ae464b0f03d1db7058b3ddcf9 (diff) | |
download | genenetwork2-afa09962dcdfcd172d98339be9d70187bdb22d61.tar.gz |
Fixed the code that generates the dataset selection drop-down for correlations
Made changes to the tables of correlation results, collections, and search results:
- Added resizeable columns to correlation results and collections, but not to search results
because it seems that it requires Y scrolling to be set (I'll check if it makes sense to add scrolling
to the search results)
- Correlation results and collections are now in scrolling tables
- The style is the same across all of these tables now
Remaining issues:
- It doesn't seem like I can set the column width when initializing dataTables in
correlation results. I don't know why this is; it might be due to the table already being the size
of a full page. I want to be able to default to some good widths, even if the user can resize them
- I tried adding hoverForMore, but it doesn't seem to cooperate with datatable cells; I think this is
due to having to put the text in a div.
Diffstat (limited to 'wqflask/wqflask/model.py')
-rwxr-xr-x | wqflask/wqflask/model.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wqflask/wqflask/model.py b/wqflask/wqflask/model.py index 042cb8df..5ea32e1f 100755 --- a/wqflask/wqflask/model.py +++ b/wqflask/wqflask/model.py @@ -172,8 +172,11 @@ class UserCollection(Base): @property def num_members(self): - print("members are:", json.loads(self.members)) - return len(json.loads(self.members)) + try: + return len(json.loads(self.members)) + except: + return 0 + #@property #def display_num_members(self): |