webapp

Web application module for AstroQ.

astroq.webapp.download_nightplan(semester_code, date, band)[source]

Download the Magiq formatted night plan file

astroq.webapp.dynamic_page(semester_code, date, band, page)[source]

Handle program, admin, and nightplan routes.

astroq.webapp.index()[source]
astroq.webapp.launch_app(uptree_path_param)[source]

Launch the Flask app

astroq.webapp.load_data_for_path(semester_code, date, band, uptree_path)[source]

Load data for a specific semester_code/date/band combination

Parameters:
  • semester_code (str) – the semester code

  • date (str) – the date in YYYY-MM-DD format

  • band (str) – the band

  • uptree_path (str) – the path to the uptree directory

Returns:

True if data loaded successfully, False otherwise

Return type:

success (bool)

astroq.webapp.render_admin_page(semester_code, date, band)[source]

Render the admin page

astroq.webapp.render_nightplan_page(band)[source]

Render the night plan page

astroq.webapp.render_program_page(semester_code, date, band, program_code)[source]

Render the program overview page for a specific program

astroq.webapp.render_star_page(starname, program_code=None)[source]

Render a specific star page. If program_code is given, only look in that program.

astroq.webapp.star_page(semester_code, date, band, program_code, starname)[source]

Handle star page route: star is under program in URL.