Michael Rabinovich commited on
Commit
47c86cf
·
1 Parent(s): 0bd3c0a

app: add admin tab for promoting and demoting rows

Browse files

new admin tab with a login button, a submission dropdown, a
validation_method radio, and mark validated / mark unvalidated buttons.
the controls are gated on membership in the CADGENBENCH_ADMINS set via a
blocks.load handler, mirroring the submit button's login gate; the
promote and demote handlers re-check admin rights server-side and
refresh the dropdown plus both leaderboard tables after a write.

1 file changed +172
app.py+172