Skip to content

Commit

Permalink
Remove cgitb support
Browse files Browse the repository at this point in the history
We don't need this now that we just have static pages.
  • Loading branch information
tstellar committed Feb 8, 2023
1 parent 5bd7331 commit d0ad068
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions update.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/python3

import cgi
import cgitb
import dnf
import rpm
import koji
Expand Down Expand Up @@ -375,14 +374,6 @@ def get_package_notes(fedora_version):
notes.update(config[s])
return notes

cgitb.enable()

# Return something right away so the server doesn't timeout.
print("Content-Type: text/html")
print("")
print("<!DOCTYPE HTML><html><head>")
sys.stdout.flush()

executor = concurrent.futures.ThreadPoolExecutor(max_workers=3)

clang_gcc_br_pkgs_fedora = executor.submit(get_gcc_clang_users_fedora)
Expand Down Expand Up @@ -521,15 +512,3 @@ def get_package_notes(fedora_version):
f.close()

executor.shutdown(True)

page_redirect='index.html'
if len(tags) == 1:
page_redirect="{}-status.html".format(tags[0])

print ("""
<meta http-equiv="refresh" content="0; url={redirect}">
</head>
<body>
<a href="{redirect}">View Updated Page</a>
</body>
</html>""".format(redirect = page_redirect))

0 comments on commit d0ad068

Please sign in to comment.