Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
629 B
1
Indexable
Never
#!/Library/Frameworks/Python.framework/Versions/3.11/bin/python3

import os
import cgi
import base
import subjects



params = cgi.FieldStorage()

year = subjects.decide_year(params.getvalue('year'))

# subject_status={'ip': 'pass', 'c1': 'pass'}
subject_status=None
for key in subjects.subjects:
    subject_status = subjects.get_or_create_subject_cookies(params.getvalue('{}'.format(key)))
    



base.start_html()
cookies_string = os.environ.get('HTTP_COOKIE', '')
print('<hr>')
print(cookies_string)
print('<hr>')

subjects.display_buttons()
subjects.print_table(year, subject_status)


base.end_html()

print(os.environ)