Fix typos
This commit is contained in:
Родитель
667c857ee0
Коммит
9917706b0a
|
@ -426,12 +426,12 @@ class Profile(models.Model):
|
|||
midnight_utc_today = datetime.combine(
|
||||
datetime.now(UTC).date(), datetime.min.time()
|
||||
).astimezone(UTC)
|
||||
midnight_utc_tomorow = midnight_utc_today + timedelta(days=1)
|
||||
midnight_utc_tomorrow = midnight_utc_today + timedelta(days=1)
|
||||
abuse_metric = (
|
||||
self.user.abusemetrics_set.select_for_update()
|
||||
.filter(
|
||||
first_recorded__gte=midnight_utc_today,
|
||||
first_recorded__lt=midnight_utc_tomorow,
|
||||
first_recorded__lt=midnight_utc_tomorrow,
|
||||
)
|
||||
.first()
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче