Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
yindaheng98 committed Dec 15, 2023
1 parent 08031d5 commit cafa0ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions dblp_crawler/summarizer/neo4j.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ def add_person(tx, person: DBLPPerson, added_pubs: set, added_journals: set):
for publication in person.publications():
if publication.title_hash() in exist_write_papers:
continue
tx.run("MATCH (a:Person {dblp_pid: $pid}) "
"MERGE (p:Publication {title_hash: $title_hash}) "
"MERGE (a)-[:WRITE]->(p)",
pid=person.pid(),
title_hash=publication.title_hash())
add_edge(tx, person.pid(), publication)
if publication.key() not in added_pubs:
add_publication(tx, publication, added_journals)
added_pubs.add(publication.key())
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='dblp_crawler',
version='1.8.10',
version='1.8.11',
author='yindaheng98',
author_email='[email protected]',
url='https://github.com/yindaheng98/dblp-crawler',
Expand Down

0 comments on commit cafa0ea

Please sign in to comment.