Skip to content

Commit 152c0d1

Browse files
committed
ci: Ruff fixes
1 parent 8208f3d commit 152c0d1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

applications/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ class Form(models.Model):
4040
"your application.\n\n"
4141
"You'll receive an email from the team that organizes Django Girls {CITY} soon."
4242
"You can always reach them by answering to this email or by writing to {your event mail}.\n\n"
43-
"Please watch out for a confirmation email and add our email address to your address book, so that future emails do not go into spam."
44-
"In the past, we have had many email invitations to the workshop go into spam and have had many applicants miss our invitation!"
43+
"Please watch out for a confirmation email and add our email address to your address book, so that future "
44+
"emails do not go into spam."
45+
"In the past, we have had many email invitations to the workshop go into spam and have had many "
46+
"applicants miss our invitation!"
4547
"We wouldn't want that to happen to you! \n\n"
4648
"For your reference, we're attaching your answers below.\n\n"
4749
"Hugs, cupcakes and high-fives!\n"

organize/models.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ def create(self, **data_dict):
6060
event_date = data_dict["date"]
6161
try:
6262
if date(event_date.year, event_date.month, event_date.day) - date(
63-
previous_event.date.year, previous_event.date.month, previous_event.date.day
63+
previous_event.date.year,
64+
previous_event.date.month,
65+
previous_event.date.day,
6466
) < timedelta(days=180):
6567
raise ValidationError(
6668
{
@@ -114,7 +116,8 @@ class EventApplication(models.Model):
114116
remote = models.BooleanField(default=False)
115117
tools = models.TextField(_("Information about how you will host your remote workshop"), blank=True)
116118
local_restrictions = models.TextField(
117-
_("Information about local restrictions for physical restrictions due to Covid-19 pandemic."), blank=True
119+
_("Information about local restrictions for physical restrictions due to Covid-19 pandemic."),
120+
blank=True,
118121
)
119122
safety = models.TextField(
120123
_("Information about how you will ensure participants' and coaches' safety during the Covid-19 pandemic"),
@@ -234,7 +237,7 @@ def deploy(self):
234237

235238
def send_deployed_email(self, event):
236239
# sort out Gmail accounts
237-
dummy_email, email_password = gmail_accounts.get_or_create_gmail(event_application=self, event=event)
240+
_, email_password = gmail_accounts.get_or_create_gmail(event_application=self, event=event)
238241

239242
# TODO: remove organizers, who are no longer in org team if cloned
240243
send_application_deployed_email(event_application=self, event=event, email_password=email_password)

0 commit comments

Comments
 (0)