Revision 58542
Added by Sandro La Bruzzo almost 4 years ago
main.py | ||
---|---|---|
66 | 66 |
return dict(result=connector.get_main_page_stats()) |
67 | 67 |
|
68 | 68 |
@app.post('/api/queryPid/') |
69 |
def query_pid(*, pid:str= Form(...)): |
|
70 |
print (pid) |
|
69 |
def query_pid(*, pid:str= Form(...)): |
|
71 | 70 |
connector = DLIESConnector() |
72 | 71 |
return dict(result=connector.query_by_id(pid)) |
73 | 72 |
|
... | ... | |
80 | 79 |
if filter: |
81 | 80 |
filter_key = filter |
82 | 81 |
if action == 'query' and query is not None: |
83 |
print(query) |
|
82 |
|
|
84 | 83 |
connector = DLIESConnector() |
85 | 84 |
try: |
86 | 85 |
result = connector.simple_query(query, start=start, user_filter=filter_key) |
Also available in: Unified diff
fixed npe