Skip to content

Commit

Permalink
Bump project version from 0.1.1-rc.2 to 0.1.1-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JCantu248 committed Nov 3, 2021
1 parent cc526b6 commit 7594a9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file defines the version of this project."""
__version__ = "0.1.1-rc.2"
__version__ = "0.1.1-rc.3"
10 changes: 8 additions & 2 deletions src/assessment/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def build_campaigns(assessment, campaign_number, template_smtp):
while True:
campaign.launch_date = get_time_input("start", assessment.timezone)

if campaign.launch_date > datetime.now():
if (
campaign.launch_date
> pytz.timezone(assessment.timezone).localize(datetime.now()).isoformat()
):
break
else:
logging.error("Launch date is not after the current datetime")
Expand All @@ -172,7 +175,10 @@ def build_campaigns(assessment, campaign_number, template_smtp):
else:
logging.error("Complete Date is not after Launch Date.")

if campaign.complete_date > datetime.now():
if (
campaign.complete_date
> pytz.timezone(assessment.timezone).localize(datetime.now()).isoformat()
):
break
else:
logging.error("Complete date is not after the current datetime.")
Expand Down

0 comments on commit 7594a9c

Please sign in to comment.