-
-
Notifications
You must be signed in to change notification settings - Fork 70
Java api #370
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
Java api #370
Conversation
5046b5b to
15e3a16
Compare
norraxx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes needed
server/api/api_accessor.py
Outdated
| async def api_patch(self, path, json_data): | ||
| headers = {'Content-type': 'application/json'} | ||
| result = self._session.request("PATCH", API_BASE_URL + path, headers=headers, json=json_data) | ||
| return result.status_code, result.text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That mean put new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be new line, event github shows it to you ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I know \n means new line, my question is Where
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at the end of file
| @pytest.fixture() | ||
| def service(api_accessor: ApiAccessor): | ||
| return AchievementService(api_accessor) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is https://www.python.org/dev/peps/pep-0008/.
Please check it, there are some rules, how code should be formatted.
68008fe to
f0d395c
Compare
server/api/api_accessor.py
Outdated
| async def api_patch(self, path, json_data): | ||
| headers = {'Content-type': 'application/json'} | ||
| result = self._session.request("PATCH", API_BASE_URL + path, headers=headers, json=json_data) | ||
| return result.status_code, result.text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be new line, event github shows it to you ;-)
c1a480f to
a1988bc
Compare
9d796bc to
8fbd41c
Compare
server/api/api_accessor.py
Outdated
| async def api_patch(self, path, json_data): | ||
| headers = {'Content-type': 'application/json'} | ||
| result = self._session.request("PATCH", API_BASE_URL + path, headers=headers, json=json_data) | ||
| return result.status_code, result.text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at the end of file
|
|
||
| def fetch_token(self, token_url, client_id, client_secret): | ||
| pass | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this code is dead
| def __init__(self): | ||
| self.status_code = 200 | ||
| self.text = "test" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, this code is dead
8fbd41c to
8f1710a
Compare
8f1710a to
7770163
Compare
Now uses java api instead of Python API
Added a config option to disable the java api since the java api is currently unable to handle achievements and events. This will allow us to update the python server early and to enable the feature later via an ENV variable.