fixed bad bug, made worse

This commit is contained in:
benjamyn 2020-10-20 00:59:30 -04:00
parent a891b7caed
commit 223c69ddd1

View File

@ -21,7 +21,7 @@ class Migration(models.Model):
def print_missed_migrations(self):
now = timezone.now()
return now - datetime.timedelta(days=1) <= self.booked_time <= now
return now + datetime.timedelta(days=1) >= self.booked_time >= now
print_missed_migrations.admin_order_field = 'booked_time'
print_missed_migrations.boolean = True
print_missed_migrations.short_description = "Was this migration missed?"