Sfoglia il codice sorgente

修改数据标准列表接口

maxiaolong 1 mese fa
parent
commit
a5ea342dd6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/core/data_interface/interface.py

+ 1 - 1
app/core/data_interface/interface.py

@@ -58,7 +58,7 @@ def standard_list(skip_count, page_size, en_name_filter=None,
     MATCH (n:data_standard)
     WHERE {where_str}
     RETURN properties(n) as properties,n.time as time,id(n) as nodeid,
-           COUNT((()-[]->(n))) + COUNT(((n)-[]->()))  as relationship_count
+           size([(n)<-[]-() | 1]) + size([(n)-[]->() | 1]) as relationship_count
     ORDER BY time desc
     SKIP $skip_count
     LIMIT $page_size