-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add all endpoint for teammembers #76
base: dev
Are you sure you want to change the base?
Conversation
|
||
|
||
def handle_get_all_teammembers(request): | ||
Session = get_db_session() |
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.
As above
except KeyError: | ||
return flask.Response("No teammember id supplied!", status=400) | ||
|
||
Session = get_db_session() |
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.
As above
except KeyError: | ||
return flask.Response("No teammember id supplied!", status=400) | ||
|
||
Session = get_db_session() |
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.
As above
if not result.success: | ||
return flask.Response(response=f"Failed: {','.join(result.errors)}", status=405) | ||
|
||
Session = get_db_session() |
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.
As above
if result.warnings: | ||
print(result.warnings) | ||
|
||
Session = get_db_session() |
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.
Use get_db_session(pool_global). New version introduced in https://github.com/KoalicjaOtwartyKrakow/backend/issues/80
To be clear: teammates are not required for the first release, so let's skip this for now |
|
@mlazowik is it to be closed? |
Closes #19 #20 #21 #22 #28