Skip to content

Commit

Permalink
Move event_date outside try block
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Jul 14, 2023
1 parent 4979903 commit cee216f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion organize/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def create(self, **data_dict):
)

if previous_event:
event_date = data_dict["date"]
try:
event_date = data_dict["date"]
if date(event_date.year, event_date.month, event_date.day) - date(
previous_event.date.year, previous_event.date.month, previous_event.date.day
) < timedelta(days=180):
Expand Down

0 comments on commit cee216f

Please sign in to comment.