Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/refactor gitlab #3

Merged
merged 4 commits into from
Jun 26, 2021
Merged

Feature/refactor gitlab #3

merged 4 commits into from
Jun 26, 2021

Conversation

geoheelias
Copy link
Contributor

Made GitLab work basically the same as Gitea (so adhere to block ranges etc, as indexer expects).

Plus some general refactoring/cleanup

@geoheelias geoheelias requested a review from puhoy June 25, 2021 15:28
@@ -130,14 +97,14 @@ def crawl(self, state: dict = None) -> Tuple[bool, List[GitHubResult], dict]:
json=dict(query=query, variables=variables)
)
try:
edges = response.json()['data']['search']['edges']
data = response.json(['data'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this really work? or are the brackets there by mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, the green part is a mistake, ["data"] has to be after response.json()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@puhoy puhoy merged commit 77530d5 into master Jun 26, 2021
@puhoy puhoy deleted the feature/refactor_gitlab branch June 26, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants