Commits

Brad Montgomery committed 3b9f0c8

Note to self: don't copy/paste when sleepy

  • Participants
  • Parent commits 378e02f

Comments (0)

Files changed (1)

File bitbucket/api.py

 
     def forks(self):
         """ This is a dirty hack to get the number of Forks/Queues by scraping by src page """
-        url = 'https://bitbucket.org/%s/%s/src/' % (username, reponame)
+        url = 'https://bitbucket.org/%s/%s/src/' % (self.username, self.slug)
         response = urlopen(Request(url))
         content = response.read()
         # Dirty hack to find X in the first occurance of the string: "Forks/Queues (X)"