correction for circle node placer
authorcavaliet
Thu, 25 Sep 2014 12:16:51 +0200
changeset 340 6a7bc9190de5
parent 339 8a5d0b987541
child 341 9a854bb09f34
correction for circle node placer
src/hdalab/views/profile.py
--- a/src/hdalab/views/profile.py	Thu Sep 25 12:10:37 2014 +0200
+++ b/src/hdalab/views/profile.py	Thu Sep 25 12:16:51 2014 +0200
@@ -385,7 +385,7 @@
         len_tags = len(all_tags)
         if period:
             len_tags += 1
-        np.init({"tags": (1, len_tags), "datasheet": (2, len(filter_output["contents"])), "related": (3, len(related_tags)), "northwest":(1, 1)})
+        np.init({"tags": (1, len_tags), "datasheet": (2, len(filter_output["contents"])), "related": (3, len(related_tags)), "northwest":(3 if shape=="circle" else 1, 1)})
         
         for t in all_tags:
             img_url = t.dbpedia_fields.thumbnail if hasattr(t, 'dbpedia_fields') and t.dbpedia_fields and t.dbpedia_fields.thumbnail else None