Skip to content

Commit

Permalink
Merge pull request #757 from nikhil25803/main
Browse files Browse the repository at this point in the history
Fixed import error ⚙️
  • Loading branch information
nikhil25803 authored Aug 25, 2023
2 parents 16f79df + add39f1 commit 296644b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/scrape_up/Hackerearth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from hackerearth import Hackerearth
from .hackerearth import Hackerearth

__all__ = ["Hackerearth"]
2 changes: 1 addition & 1 deletion src/scrape_up/codechef/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from codechef import User
from .codechef import User

__all__ = ["User"]
10 changes: 5 additions & 5 deletions src/scrape_up/github/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from users import Users
from repository import Repository
from issue import Issue
from organization import Organization
from pull_request import PullRequest
from .users import Users
from .repository import Repository
from .issue import Issue
from .organization import Organization
from .pull_request import PullRequest


__all__ = ["Users", "Repository", "Issue", "Organization", "PullRequest"]
6 changes: 1 addition & 5 deletions src/scrape_up/github/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,4 @@ def get_open_issues(self):
except:
return None

return open_issues


user = Users(username="nikhil25803")
print(user.get_open_issues())
return open_issues
2 changes: 1 addition & 1 deletion src/scrape_up/github_education/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from events import Events
from .events import Events

__all__ = ["Events"]
2 changes: 1 addition & 1 deletion src/scrape_up/hackernews/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from articles import Articles
from .articles import Articles

__all__ = ["Articles"]
4 changes: 2 additions & 2 deletions src/scrape_up/hackerrank/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from user import User
from contest import Contest
from .user import User
from .contest import Contest

__all__ = ["HackerRank", "Contest"]

0 comments on commit 296644b

Please sign in to comment.