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

WIP: Get API_Keys from Database #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rbalink
Copy link
Contributor

@rbalink rbalink commented Jul 14, 2020

Issue: #37
In slr.py, get_api_keys() now searches in mongo database after api key and database name for individual user, therefore username has to be passed around (kinda looks ugly, suggestions for improvement welcome)

Important:

  • name of the database must match with wrapper/__ init __.py
  • If username is not known, (e.g. dry_query) username will be "admin"

@rbalink rbalink requested a review from marcplustwo July 14, 2020 17:45
pass

# sample usage of persistent query
from functions.db.connector import add_review, new_query
from functions.db.connector import add_review, new_query, get_api_keys_from_user, test111
Copy link
Contributor

Choose a reason for hiding this comment

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

What's test111?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. Forgot to delete that

@rbalink rbalink changed the title Get API_Keys from Database WIP: Get API_Keys from Database Jul 15, 2020
@rbalink
Copy link
Contributor Author

rbalink commented Jul 15, 2020

Feature not relevant for presentation because it won't be shown in frontend. Might be useful for further development

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.

2 participants