Browse Source

adding comments to make sections clearer in app

main
Simon Bowie 2 years ago
parent
commit
cb34922f06
3 changed files with 5 additions and 5 deletions
  1. +3
    -3
      web/app/__init__.py
  2. +1
    -1
      web/app/main.py
  3. +1
    -1
      web/app/search.py

+ 3
- 3
web/app/__init__.py View File



moment.init_app(app) moment.init_app(app)


# blueprint for main parts of app
# blueprint for main parts of app (contents and frontmatter)
from .main import main as main_blueprint from .main import main as main_blueprint
app.register_blueprint(main_blueprint) app.register_blueprint(main_blueprint)


# blueprint for search parts of app
# blueprint for search parts of app (Section 1: Searching the archive)
from .search import search as search_blueprint from .search import search as search_blueprint
app.register_blueprint(search_blueprint) app.register_blueprint(search_blueprint)


# blueprint for interventions parts of app
# blueprint for interventions parts of app (Section 2: Search Interventions)
from .interventions import interventions as interventions_blueprint from .interventions import interventions as interventions_blueprint
app.register_blueprint(interventions_blueprint) app.register_blueprint(interventions_blueprint)



+ 1
- 1
web/app/main.py View File

# @creation_date: 2022-09-07 # @creation_date: 2022-09-07
# @license: The MIT License <https://opensource.org/licenses/MIT> # @license: The MIT License <https://opensource.org/licenses/MIT>
# @author: Simon Bowie <ad7588@coventry.ac.uk> # @author: Simon Bowie <ad7588@coventry.ac.uk>
# @purpose: Main route for index and other pages in Section 1: Searching the archive
# @purpose: Main route for index and other miscellaneous pages
# @acknowledgements: # @acknowledgements:
# https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login # https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login



+ 1
- 1
web/app/search.py View File

# @creation_date: 2022-09-07 # @creation_date: 2022-09-07
# @license: The MIT License <https://opensource.org/licenses/MIT> # @license: The MIT License <https://opensource.org/licenses/MIT>
# @author: Simon Bowie <ad7588@coventry.ac.uk> # @author: Simon Bowie <ad7588@coventry.ac.uk>
# @purpose: search route for search
# @purpose: search route for Section 1: Searching the archive
# @acknowledgements: # @acknowledgements:
# https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login # https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login



Loading…
Cancel
Save