Skip to content
Snippets Groups Projects
Commit eb07a2b4 authored by Frank Duncan's avatar Frank Duncan
Browse files

Add wildcard LFC Analysis pages to RE2030

parent a163c829
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,9 @@ Command-line options:
between experts and the proposals they evaluated,
with the extra data being their evaluation
--wildcards FILE FILE is a simle newline separated list of proposal keys
for the wildcard proposals.
--pare ARG If ARG is a number, reduce the number of items to 1/ARG. If
ARG begins with +, then ARG is a comma separated list of
keys to include. If ARG begins with @, then ARG is a
......@@ -120,6 +123,7 @@ def main():
"correction-file=",
"peer-to-peer-review=",
"expert-panel-review=",
"wildcards=",
"pare=",
"csv-only",
],
......@@ -135,6 +139,7 @@ def main():
correction_file = None
peer_to_peer_review_csv = None
expert_panel_review_csv = None
wildcards = None
pare = None
csv_only = False
for o, a in opts:
......@@ -156,6 +161,8 @@ def main():
peer_to_peer_review_csv = a
elif o == "--expert-panel-review":
expert_panel_review_csv = a
elif o == "--wildcards":
wildcards = a
else:
sys.stderr.write("ERROR: unrecognized option '%s'\n" % o)
sys.exit(2)
......@@ -395,6 +402,15 @@ def main():
"{{ #tdcrender:RacialEquity2030/id/" + key + ".mwiki|LFCAnalysis }}",
)
with open(wildcards) as f:
for key in f.read().splitlines():
if key in comp.proposals:
proposal = comp.proposals[key]
my_wiki.create_page(
"LFC Analysis of %s" % proposal.cell("MediaWiki Title"),
"{{ #tdcrender:RacialEquity/id/" + key + ".mwiki|LFCAnalysis }}",
)
if __name__ == "__main__":
main()
......@@ -35,6 +35,7 @@ BASE_ATTACHMENTS="RE2020_Registration_Application_exports_2021-03-24_08-08-31.zi
FINALIST_ATTACHMENTS="Finalist Attachments.zip"
CORRECTION_FILE="OTS_Corrections.csv"
ADMIN_REVIEW_CSV="Kellogg-AdminReview.csv"
WILDCARDS="wildcards.dat"
TMP_ATTACHMENTS_DIR="${DATA_DIR}/tmpattachments"
ATTACHMENTS_DIR="${DATA_DIR}/attachments/"
......@@ -73,6 +74,7 @@ if [ ! -d "${DATA_DIR}" ] ; then
decrypt "${DATA_DIR}/${CORRECTION_FILE}" "${ENCRYPTED_DIR}/${CORRECTION_FILE}.gpg" "${GPG_PASSPHRASE}"
decrypt "${DATA_DIR}/${P2P_RANKING_CSV}" "${ENCRYPTED_DIR}/${P2P_RANKING_CSV}.gpg" "${GPG_PASSPHRASE}"
decrypt "${DATA_DIR}/${EP_RANKING_CSV}" "${ENCRYPTED_DIR}/${EP_RANKING_CSV}.gpg" "${GPG_PASSPHRASE}"
decrypt "${DATA_DIR}/${WILDCARDS}" "${ENCRYPTED_DIR}/${WILDCARDS}.gpg" "${GPG_PASSPHRASE}"
mkdir -p ${TDC_CONFIG_DIR}
......@@ -113,6 +115,7 @@ ${RUNNER} --proposals-csv="${DATA_DIR}/${PROPOSALS_CSV}" \
--peer-to-peer-review="${DATA_DIR}/${P2P_RANKING_CSV}" \
--expert-panel-review="${DATA_DIR}/${EP_RANKING_CSV}" \
--correction-file="${DATA_DIR}/${CORRECTION_FILE}" \
--wildcards="${DATA_DIR}/${WILDCARDS}" \
$PARE \
$CSV_ONLY \
--tdc-config-dir="${TDC_CONFIG_DIR}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment