diff --git a/setup.py b/setup.py index cc2f074..d69c777 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/test_twarc_network.py b/test_twarc_network.py index d2c5816..93fda91 100644 --- a/test_twarc_network.py +++ b/test_twarc_network.py @@ -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(): diff --git a/twarc_network/__init__.py b/twarc_network/__init__.py index 8e80556..017f0f4 100644 --- a/twarc_network/__init__.py +++ b/twarc_network/__init__.py @@ -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, )