Beispiel #1
0
 def apply_sanction(self, profile, ban):
     day = int(self.array_infos.get("ban-jrs"))
     profile.end_ban_read = datetime.now() + timedelta(days=day, hours=0, minutes=0, seconds=0)
     profile.can_read = False
     profile.save()
     ban.save()
     logout_user(profile.user.username)
Beispiel #2
0
 def apply_sanction(self, profile, ban):
     profile.end_ban_read = None
     profile.can_read = False
     profile.save()
     ban.save()
     logout_user(profile.user.username)