From da2bd9c0cab3b45dee8217bc048b2ce8f5bf3e9e Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Mon, 9 Jan 2017 17:44:37 -0500 Subject: [PATCH] Clear out branch.{py,spt} --- branch.py | 28 ---------------------------- emails/branch.spt | 30 ------------------------------ 2 files changed, 58 deletions(-) delete mode 100755 branch.py diff --git a/branch.py b/branch.py deleted file mode 100755 index ecab044241..0000000000 --- a/branch.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -from __future__ import absolute_import, division, print_function, unicode_literals - -import sys - -from gratipay.utils import markdown -from gratipay import wireup - - -db = wireup.db(wireup.env()) - -statements = db.all('SELECT s.*, username FROM statements s ' - 'JOIN participants p ON s.participant=p.id ' - 'ORDER BY participant, lang ASC') - -for i, statement in enumerate(statements): - try: - scrubbed = markdown.render_and_scrub(statement.content) - except Exception as exc: - print(exc.__class__.__name__, statement.participant, statement.username, file=sys.stderr) - continue - db.run( 'UPDATE statements SET content_scrubbed=%s WHERE participant=%s AND lang=%s' - , (scrubbed, statement.participant, statement.lang) - ) - print('\r{:>5}'.format(i), end='') - -print() diff --git a/emails/branch.spt b/emails/branch.spt index e25aeaf1e7..7f80c421fb 100644 --- a/emails/branch.spt +++ b/emails/branch.spt @@ -1,32 +1,2 @@ -Revised Terms of Service [---] text/html - -Greetings! We have revised our Terms of Service, that all-important document -that governs your continued use of Gratipay. If you no longer use your Gratipay -account, you can close -it here. If you want to continue to use Gratipay, please learn about -our new Terms as soon as you can. Thanks, and have a great day! - -
-
- -Learn about our new Terms - -
-
- [---] text/plain -We have revised our Terms of Service, that all-important -document that governs your continued use of Gratipay. If you -no longer use your Gratipay account, you can close it here: - - https://gratipay.com/about/me/settings/close - -If you want to continue to use Gratipay, please learn about our -new Terms as soon as you can: - - https://gratipay.news/from-teams-to-projects-45c46718507b - -Thanks, and have a great day!