Skip to content

Commit

Permalink
Update pre-con FAQ text
Browse files Browse the repository at this point in the history
Also adds the external sync, created, and modified columns to Super MAG tables.
  • Loading branch information
kitsuta committed Aug 20, 2024
1 parent 448836a commit 252d962
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
"""Add external sync, created, and last updated columns to magprime tables
Revision ID: 3b1f31ec9f24
Revises: 0173330bfb6e
Create Date: 2024-08-01 02:30:54.112080
"""


# revision identifiers, used by Alembic.
revision = '3b1f31ec9f24'
down_revision = '0173330bfb6e'
branch_labels = None
depends_on = None

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
import residue


try:
is_sqlite = op.get_context().dialect.name == 'sqlite'
except Exception:
is_sqlite = False

if is_sqlite:
op.get_context().connection.execute('PRAGMA foreign_keys=ON;')
utcnow_server_default = "(datetime('now', 'utc'))"
else:
utcnow_server_default = "timezone('utc', current_timestamp)"

def sqlite_column_reflect_listener(inspector, table, column_info):
"""Adds parenthesis around SQLite datetime defaults for utcnow."""
if column_info['default'] == "datetime('now', 'utc')":
column_info['default'] = utcnow_server_default

sqlite_reflect_kwargs = {
'listeners': [('column_reflect', sqlite_column_reflect_listener)]
}

# ===========================================================================
# HOWTO: Handle alter statements in SQLite
#
# def upgrade():
# if is_sqlite:
# with op.batch_alter_table('table_name', reflect_kwargs=sqlite_reflect_kwargs) as batch_op:
# batch_op.alter_column('column_name', type_=sa.Unicode(), server_default='', nullable=False)
# else:
# op.alter_column('table_name', 'column_name', type_=sa.Unicode(), server_default='', nullable=False)
#
# ===========================================================================


def upgrade():
op.add_column('prev_season_supporter', sa.Column('created', residue.UTCDateTime(), server_default=sa.text("timezone('utc', current_timestamp)"), nullable=False))
op.add_column('prev_season_supporter', sa.Column('last_updated', residue.UTCDateTime(), server_default=sa.text("timezone('utc', current_timestamp)"), nullable=False))
op.add_column('prev_season_supporter', sa.Column('external_id', postgresql.JSONB(astext_type=sa.Text()), server_default='{}', nullable=False))
op.add_column('prev_season_supporter', sa.Column('last_synced', postgresql.JSONB(astext_type=sa.Text()), server_default='{}', nullable=False))
op.add_column('season_pass_ticket', sa.Column('created', residue.UTCDateTime(), server_default=sa.text("timezone('utc', current_timestamp)"), nullable=False))
op.add_column('season_pass_ticket', sa.Column('last_updated', residue.UTCDateTime(), server_default=sa.text("timezone('utc', current_timestamp)"), nullable=False))
op.add_column('season_pass_ticket', sa.Column('external_id', postgresql.JSONB(astext_type=sa.Text()), server_default='{}', nullable=False))
op.add_column('season_pass_ticket', sa.Column('last_synced', postgresql.JSONB(astext_type=sa.Text()), server_default='{}', nullable=False))


def downgrade():
op.drop_column('season_pass_ticket', 'last_synced')
op.drop_column('season_pass_ticket', 'external_id')
op.drop_column('season_pass_ticket', 'last_updated')
op.drop_column('season_pass_ticket', 'created')
op.drop_column('prev_season_supporter', 'last_synced')
op.drop_column('prev_season_supporter', 'external_id')
op.drop_column('prev_season_supporter', 'last_updated')
op.drop_column('prev_season_supporter', 'created')
20 changes: 8 additions & 12 deletions magprime/templates/emails/precon_faqs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<body>

You are receiving this e-mail because you are pre-registered to attend {{ c.EVENT_NAME_AND_YEAR }}.
Please refer to this FAQ for instructions on how to get your badge, and how to view the schedule.
Please refer to this FAQ for instructions on how to get your badge, where to pick up merch, how to view the schedule, and other useful information.

<br/> <br/>

Expand All @@ -12,28 +12,24 @@
When you arrive at MAGFest, go to Registration, located in Expo Hall E, to pick up your badge. Once Registration opens on Thursday morning, usually at 10:00 AM, it will stay open until Sunday afternoon at 1:00 PM, with three exceptions. Registration will close between 4:00AM and 7:00AM Friday, Saturday, and Sunday mornings. Please bring a government-issued photo id such as a driver's license or military id.
</p>
<p>
<b> Will additional badges be sold at the door?</b><br />
Yes, but there is a possibility of us selling out, so check our website for any badge availability alerts.
<b>Will additional badges be sold at the door?</b><br />
Badges will be available online until we sell out, which may occur during pre-registration. Please view our website and social media for any badge availability alerts.
</p>
<p>
<b>Which registration line do I use?</b>
<ul>
<li>Staff, Bands, Guests, Vendors, Indie showcase exhibitors, and Volunteers share the same line. Look for the signage inside Expo Hall E.</li>
<li>Contractors, Staff, Volunteer, Bands, Guests, Vendors, and Indie showcase exhibitors share the same line. Look for the signage inside Expo Hall E.</li>
<li>All other pre-registered attendees (including those who purchased group registrations) should use the "Pre-Registration Badge Pickup" line inside Expo Hall E.</li>
<li>If you are accompanied by people who have not pre-registered, they can <a href="{{ c.URL_BASE }}/preregistration/form" target="_blank"><b>purchase one online</b></a>.</li>
<li>If you are accompanied by people who have not pre-registered, they can <a href="{{ c.URL_BASE }}/preregistration/form" target="_blank"><b>purchase one online</b></a>, as long as badges are still available.</li>
</ul>
</p>
<p>
<b>Where can I pick up swag that I pre-ordered, such as a t-shirt or supporter bundle?</b><br />
After you've picked up your badge, you can pick up your swag at the MAGFest merch booth. The merch booth is located at the front of Expo Hall C. Use <a href="https://images.squarespace-cdn.com/content/v1/58f0f670ff7c50d19776494d/642d3da1-587d-448b-90a3-ff95cdbf1028/2024-Map.jpg" target="_blank"><b>this map</b></a> to help find your way to the merch booth from the registration area.
<b>Where can I pick up the merch that I pre-ordered?</b><br />
After you've picked up your badge, you can pick up your swag at the front of Expo Hall E.
</p>
<p>
<b>Where can I view a schedule of events?</b><br />
There are multiple ways to view our schedule:</p>
<ul>
<li><i>Using the Guidebook app or website (desktop or mobile)</i>: Go to the <a href="https://super.magfest.org/schedule" target="_blank">Guidebook website</a> to view the guidebook in your web browser or download the mobile app. Make sure to check for guidebook updates periodically through the weekend, as we may make schedule changes.</li>
<li><i>Paper schedules</i>: Printed schedules will be available in limited quantities at Registration and our Info Desk. Please consider using guidebook instead to save paper.</li>
</ul>
Go to the <a href="https://super.magfest.org/schedule" target="_blank">Guidebook website</a> to view the guidebook in your web browser or download the mobile app. Make sure to check for guidebook updates periodically through the weekend, as we may make schedule changes.
</p>
{% if attendee.is_transferable %}
<p>
Expand Down

0 comments on commit 252d962

Please sign in to comment.