-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add report for deleted Guidebook items
We use the tracking table to grab all items that were synced to guidebook but have since been deleted, and send that out in an email. We piggyback on the Guidebook updates email when at-con and check every twelve hours otherwise. Also turns these emails off by default -- to enable them, you need to define the email address they get sent to.
- Loading branch information
Showing
4 changed files
with
86 additions
and
7 deletions.
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,7 @@ | ||
Attention Guidebook admins! The items below have been deleted from the system. | ||
|
||
{% for category in deleted_models %}{{ category }}(s): | ||
{% for item in deleted_models[category] %} - {{ item }} | ||
{% endfor %}{% endfor %} | ||
|
||
This email will be the only record of these item deletions. Please keep it until you delete all the above items from Guidebook. |
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
Attention Guidebook admins! | ||
The following categories have stale items: | ||
|
||
{% if stale_models %}The following categories have been updated in the system: | ||
{% for label in stale_models %}- {{ label }} | ||
{% endfor %} | ||
|
||
You can review all pending items here: {{ c.URL_BASE }}/schedule_reports/index | ||
{% endif %}{% if deleted_models %}The following items have been deleted: | ||
{% for category in deleted_models %}{{ category }}(s): | ||
{% for item in deleted_models[category] %} - {{ item }} | ||
{% endfor %} | ||
{% endfor %} | ||
|
||
{% endif %}You can review all pending items here: {{ c.URL_BASE }}/schedule_reports/index |