Skip to content

Commit 7eb0af4

Browse files
Remove accidentally duplicated key
1 parent 7c9c0f8 commit 7eb0af4

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

migrations/add_communication_preferences.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""
22
Add communication preference columns to the user table.
33
4-
SQLModel create_all() does not alter existing tables. Run this after pulling
5-
#189 changes if your local or deployed database predates comm_opt_in columns.
4+
Required when upgrading from <=0.1.27 to >0.1.27. The comm_opt_in,
5+
comm_updates, and comm_marketing columns were introduced in 0.1.28, and
6+
SQLModel create_all() does not alter existing tables. Run this against any
7+
local or deployed database that predates the columns.
68
79
Usage:
810
uv run python -m migrations.add_communication_preferences .env
@@ -93,9 +95,7 @@ def main() -> None:
9395
)
9496
args = parser.parse_args()
9597

96-
stats = add_communication_preference_columns(
97-
env_file=args.env, apply=args.apply
98-
)
98+
stats = add_communication_preference_columns(env_file=args.env, apply=args.apply)
9999
mode = "APPLY" if args.apply else "DRY-RUN"
100100
if stats.all_present:
101101
print(f"[{mode}] All communication preference columns already exist.")

routers/core/account.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ async def read_register(
207207
"invitation_token": invitation_token,
208208
"host_name": os.getenv("HOST_NAME", "our platform"),
209209
"invitation_token_warning": invitation_token_warning,
210-
"host_name": os.getenv("HOST_NAME", "our platform"),
211210
},
212211
)
213212

templates/partials/communication_preferences_fields.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
if (master.checked) {
6969
subPrefs.style.display = '';
7070
updates.checked = true;
71-
marketing.checked = true;
7271
} else {
7372
syncSubPreferences();
7473
}

0 commit comments

Comments
 (0)