-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# change this to a directory on your local machine to store pubmed articles | ||
PUBMED_DIR=./pubmed | ||
PUBMED_DIR=/Users/rmillikin/PubmedAbstracts | ||
|
||
# password hash (password is 'password' by default; to change it, you need | ||
# to generate a hash yourself using bcrypt and put it here) | ||
# NOTE: I can't figure out how to use dollar signs in the hash. This is hacky, | ||
# but replace $ with ____ (four underscores). | ||
PASSWORD_HASH="____2b____12____YfgpDEOwxLy..UkZEe0H8.0aO/AQXpbsA4sAgZ9RWQShkG4iZYl16" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ typing-extensions==3.10.0.2 | |
urllib3==1.26.7 | ||
Werkzeug==2.0.2 | ||
zipp==3.6.0 | ||
flask-bcrypt==0.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import argparse | ||
import server.app as app | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument('-p', '--pw_hash', default='none') | ||
args = parser.parse_args() | ||
|
||
def main(): | ||
app.start_server() | ||
app.start_server(args.pw_hash) | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters