From e67ef7b3957b9eeff6e776af966a9ad723b279d9 Mon Sep 17 00:00:00 2001 From: Owen Graham <ohgraham1@madisoncollege.edu> Date: Mon, 13 Jun 2022 17:37:53 -0500 Subject: [PATCH] Make `visualizer.py` no longer itself a CGI --- visualizer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) mode change 100755 => 100644 visualizer.py diff --git a/visualizer.py b/visualizer.py old mode 100755 new mode 100644 index cb8e143..b035213 --- a/visualizer.py +++ b/visualizer.py @@ -1,12 +1,9 @@ -#!/usr/bin/env python3 - import datetime from io import BytesIO import json import math from types import SimpleNamespace from urllib.request import urlopen -from wsgiref.handlers import CGIHandler # Activate the virtual env to get access to non-standard packages. activator = 'venv/bin/activate_this.py' @@ -380,4 +377,4 @@ def read_data(station, year): if __name__ == '__main__': - CGIHandler().run(app) + app.run() -- GitLab