diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-12 13:06:49 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-12 13:06:49 +1000 |
| commit | b19bab9098e3eae71845faa7c8d17e9d03548d22 (patch) | |
| tree | 987af00760fd2b76b07a92272c6dfa722df65cb6 /backend | |
| parent | a9fa4cf9a40c4e636772d743371163daddda159c (diff) | |
Enable info-display for search suggestions
Add info-icon to SearchModal, sending event when clicked.
Change App to allow info-modal display on top of search-modal.
Also make info-icon-click events send a node name instead of a LayoutNode,
and make TileInfoModal and server get/send additional node info, seeing
as the client might not have info about the node's common name, tips,
etc, anymore.
Diffstat (limited to 'backend')
| -rwxr-xr-x | backend/server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/server.py b/backend/server.py index 374fb53..6d2970d 100755 --- a/backend/server.py +++ b/backend/server.py @@ -121,8 +121,11 @@ def lookupNodeInfo(name): imgInfo = None if row != None: imgInfo = {"eolId": row[0], "sourceUrl": row[1], "license": row[2], "copyrightOwner": row[3]} + # Get other info + temp = lookupNodes([name], False) + nodeObj = temp[name] if name in temp else None # - return {"desc": desc, "imgInfo": imgInfo} + return {"desc": desc, "imgInfo": imgInfo, "nodeObj": nodeObj} class DbServer(BaseHTTPRequestHandler): def do_GET(self): |
