Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Remove settings table
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre authored and rohitpaulk committed Apr 4, 2016
1 parent 3ce46e6 commit 40564a6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion gratipay/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
tell_sentry = website.tell_sentry = gratipay.wireup.make_sentry_teller(env)
website.db = gratipay.wireup.db(env)
website.mailer = gratipay.wireup.mail(env, website.project_root)
gratipay.wireup.settings(website.db)
gratipay.wireup.base_url(website, env)
gratipay.wireup.secure_cookies(env)
gratipay.wireup.billing(env)
Expand Down
2 changes: 0 additions & 2 deletions gratipay/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ def clear_tables(self):
tablenames.insert(0, tablename)
self.db.run("ALTER SEQUENCE participants_id_seq RESTART WITH 1")

gratipay.wireup.settings(self.db)


def make_elsewhere(self, platform, user_id, user_name, **kw):
info = UserInfo( platform=platform
Expand Down
6 changes: 0 additions & 6 deletions gratipay/wireup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ def db(env):

return db

def settings(db):
from gratipay.billing.exchanges import MINIMUM_CHARGE
with db.get_cursor() as cursor:
cursor.run('DELETE FROM settings')
cursor.run('INSERT INTO settings VALUES (%s)', (MINIMUM_CHARGE, ))

def mail(env, project_root='.'):
Participant._mailer = mandrill.Mandrill(env.mandrill_key)
emails = {}
Expand Down
1 change: 0 additions & 1 deletion sql/branch.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
BEGIN;
UPDATE payment_instructions SET due = 0 WHERE amount = 0 AND due != 0;
UPDATE payment_instructions SET due = floor(9.41/(amount)) * amount WHERE due > 9.41;
CREATE TABLE settings (minimum_charge numeric(35,2) DEFAULT NULL);
END;

0 comments on commit 40564a6

Please sign in to comment.