Skip to content

Commit

Permalink
Fix visibility timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
workholic7228 committed Jan 12, 2024
1 parent a606e5b commit 7a0038c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo_plugin/utils/dojo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ def visibility(cls, *args):
start = None
stop = None
for arg in args:
print(repr(arg), flush=True)
print(repr(arg.get("visibility", {})), flush=True)
start = arg.get("visibility", {}).get("start") or start
stop = arg.get("visibility", {}).get("stop") or stop
if start or stop:
start = start.astimezone(datetime.timezone.utc) if start else None
stop = stop.astimezone(datetime.timezone.utc) if stop else None
return cls(start=start, stop=stop)

_missing = object()
Expand Down

0 comments on commit 7a0038c

Please sign in to comment.