Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kokonut27 committed Oct 4, 2021
1 parent a620d98 commit 3c4744d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/git_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,18 @@ def __init__(self, username):
"""
self.query = query

#if self.token == None:
# raise Exception("Token must be inputted!")
# if the username is none
if self.user == None:
raise ArgumentError("Username argument must be filled out!")

#return asdf.run_query(query, self.token)
self.runQ = asdf.run_query

# actually run the request
def User(self):
self.userf = self.runQ(self.query, self.token)
return self.userf

# edit the query
# edit the query - returns github nickname
def Name(self):
query = """
query UserData {
Expand All @@ -90,6 +87,7 @@ def Name(self):
self.name = self.runQ(query, self.token)
return self.name

# same thing as above, just for github bio
def Bio(self):
query = """
query UserData {
Expand Down

0 comments on commit 3c4744d

Please sign in to comment.