From ebd3a19b2edaf5041debc6179baba6c519d41a76 Mon Sep 17 00:00:00 2001 From: Elan Hourticolon-Retzler Date: Fri, 22 Apr 2022 21:14:26 -0700 Subject: [PATCH 1/3] Fixes some typos. --- donate/models.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/donate/models.py b/donate/models.py index 54a7dae..521aeb9 100644 --- a/donate/models.py +++ b/donate/models.py @@ -20,8 +20,8 @@ class TimestampMixin(): class User(db.Model): - '''A user is someonme internal to Noisebridge who uses the system for - reportinng purposes. This should include treasurers and priviledged + '''A user is someone internal to Noisebridge who uses the system for + reporting purposes. This should include treasurers and privileged users who may access sensitive user data for donations id: unique ID of the user, e.g. primary key @@ -71,7 +71,7 @@ def __declare_last__(cls): class Account(db.Model, TimestampMixin): ''' Accounts aggregate transactions. They are associated with one and - only one currenct. An account can increase or decrease based on the + only one currency. An account can increase or decrease based on the sum of the transactions. id: unique Id @@ -103,9 +103,8 @@ class Project(db.Model, TimestampMixin): id: Unique ID name: Project name desc: Project description - account_id: Accunt linked to project (might need multiple for multiple ccys - goal: Amount required to read the goal of the project. - (prob need ccy) + account_id: Account linked to project (might need multiple for multiple ccys) + goal: Amount required to read the goal of the project. (prob need ccy) ''' id = db.Column(db.Integer, @@ -154,7 +153,6 @@ class StripeDonation(Donation, TimestampMixin): the outside world and Noisebridge. there is no direct account linked to a donation, it encapsulates the payment method and person. All financial data is handled via created transactions or the associated user data. - ''' __tablename__ = 'stripe_donation' From 5151198aa6898904e7066c3c9994cb4d533e4656 Mon Sep 17 00:00:00 2001 From: Elan Hourticolon-Retzler Date: Fri, 22 Apr 2022 21:27:39 -0700 Subject: [PATCH 2/3] Fixes bug that prevented other projects from showing up in drop down. --- donate/templates/main.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/donate/templates/main.html b/donate/templates/main.html index d818547..29579f4 100644 --- a/donate/templates/main.html +++ b/donate/templates/main.html @@ -98,8 +98,8 @@

Make a donation