Skip to content

Commit

Permalink
collapse hashtags with different case
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Oct 10, 2022
1 parent 296ac4c commit 41ccc04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="twarc-network",
version="0.1.1",
version="0.2.0",
url="https://github.com/docnow/twarc-network",
author="Ed Summers",
author_email="ehs@pobox.com",
Expand Down
2 changes: 1 addition & 1 deletion test_twarc_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_hashtags():
)
assert result.exit_code == 0
graph = json.loads(result.output)
assert len(graph["nodes"]) == 383
assert len(graph["nodes"]) == 352


def test_edges():
Expand Down
4 changes: 2 additions & 2 deletions twarc_network/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def get_graph(infile, nodes_type, edge_types, id_as_label):
for ht1, ht2 in hashtag_pairs:
add_hashtag_edge(
g,
"#" + ht1,
"#" + ht2,
"#" + ht1.lower(),
"#" + ht2.lower(),
created_at_date,
)

Expand Down

0 comments on commit 41ccc04

Please sign in to comment.