Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
in 2d3
  • Loading branch information
stleon committed Oct 5, 2014
1 parent db55eea commit 8c84c4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 2d3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from main import VkFriends
from settings import token, my_id, api_v
from settings import token, my_id, api_v, max_workers, delay, deep


class D3(VkFriends):
Expand All @@ -20,8 +20,8 @@ class D3(VkFriends):
target - Myriel, source 1 - Napoleon
"""

def __init__(self, token, my_id, api_v):
VkFriends.__init__(self, token, my_id, api_v)
def __init__(self, token, my_id, api_v, max_workers):
VkFriends.__init__(self, token, my_id, api_v, max_workers)
self.friendships = self.common_friends()
self.js = {"nodes": [], "links": []}
self.write_json(self.to_json())
Expand Down Expand Up @@ -54,4 +54,4 @@ def write_json(self, json):
f.write(json)

if __name__ == '__main__':
a = D3(token, my_id, api_v)
a = D3(token, my_id, api_v, max_workers)

0 comments on commit 8c84c4b

Please sign in to comment.