forked from the-blue-alliance/the-blue-alliance
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin tool to delete malformed matches.
- Loading branch information
Showing
4 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends "admin/base.html" %} | ||
|
||
{% block title %}Match Dashboard - TBA Admin{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h1>Clean up Matches</h1> | ||
|
||
{% if tried_delete %} | ||
<p><strong>Deleted {{ match_keys_deleted|length }} malformed matches:</strong> {{ match_keys_deleted }}</p> | ||
{% endif %} | ||
|
||
<p>This page deletes all Matches belonging to an Event where the Match key names don't correspond to the Event key name. This will delete ("Match", "2011newton_f1m1") from ("Event", "2011new"), but will leave ("Match", "2011new_f1m1").</p> | ||
|
||
<form action="/admin/match/cleanup" method="post"> | ||
<fieldset> | ||
<legend>Clean up what Event? (like 2011new)</legend> | ||
<ul> | ||
<li><input type="text" name="event_key_name" /><label for="event_key_name">Event Key</label></li> | ||
<li><input type="submit" id="submit" name="submit" value="Clean Up"></li> | ||
</ul> | ||
</fieldset> | ||
</form> | ||
|
||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters