mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-18 16:38:59 +00:00
deps: update ruff
This commit is contained in:
1 parent
1da45fdffc
commit
9acb421b2e
5 files changed
+28
-29
No files matched your search
@@ -145,10 +145,8 @@ class LaunderetteBookView(CanViewMixin, DetailView):
|
||||
and self.check_slot("WASHING", h)
|
||||
and self.check_slot("DRYING", h + timedelta(hours=1))
|
||||
)
|
||||
or self.slot_type == "WASHING"
|
||||
and self.check_slot("WASHING", h)
|
||||
or self.slot_type == "DRYING"
|
||||
and self.check_slot("DRYING", h)
|
||||
or (self.slot_type == "WASHING" and self.check_slot("WASHING", h))
|
||||
or (self.slot_type == "DRYING" and self.check_slot("DRYING", h))
|
||||
):
|
||||
free = True
|
||||
if free and datetime.now().replace(tzinfo=tz.utc) < h:
|
||||
|
||||
Reference in new issue
Block a user