needmorecowbell / giggity

Wraps github api for openly available information about an organization, user, or repo
Apache License 2.0
126 stars 19 forks source link

Depth missing #18

Closed jakcodex closed 5 years ago

jakcodex commented 5 years ago
[root@vm giggity]# python3.5 giggity.py -O username.json -v -u username   

   __ _(_) __ _  __ _(_) |_ _   _ 
  / _` | |/ _` |/ _` | | __| | | |
 | (_| | | (_| | (_| | | |_| |_| |
  \__, |_|\__, |\__, |_|\__|\__, |
  |___/   |___/ |___/       |___/ 

Traceback (most recent call last):
  File "giggity.py", line 272, in <module>
    g = giggity()
  File "giggity.py", line 10, in __init__
    self.depth = depth
NameError: name 'depth' is not defined

Depth isn't in the argument's list.

class giggity():

    def __init__(self, auth_usr="", auth_pss=""):
        self.depth = depth
if (args.depth):
    g = giggity(user, psswd, int(args.depth))
else:
    g = giggity(user, psswd)

Seems it was added here but not updated in the arglist https://github.com/needmorecowbell/giggity/commit/9a9bf0f880df75a7d04552b870e525dca1b0beb9