Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pole-Web
Website
Commits
2007c22a
Commit
2007c22a
authored
Mar 23, 2022
by
MOREAU Ulysse
Browse files
fix mypy : Item "None" of "Optional[datetime]" has no attribute "astimezone"
parent
5a965045
Changes
1
Hide whitespace changes
Inline
Side-by-side
events/management/commands/create_recurrent_events.py
View file @
2007c22a
...
...
@@ -62,7 +62,7 @@ class Command(BaseCommand):
e
.
end_inscriptions
=
e
.
end_inscriptions
.
astimezone
(
localtz
).
replace
(
hour
=
rec_event
.
end_inscriptions
.
astimezone
(
localtz
).
hour
)
if
e
.
invitations_start
is
not
None
:
if
e
.
invitations_start
is
not
None
and
rec_event
.
invitations_start
is
not
None
:
e
.
invitations_start
=
e
.
invitations_start
.
astimezone
(
localtz
).
replace
(
hour
=
rec_event
.
invitations_start
.
astimezone
(
localtz
).
hour
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment