[Code Cleanup] Update some variable names to conform with PEP8

This commit is contained in:
2018-07-03 08:27:17 +02:00
parent 9dd2a1120f
commit 5f5ccaa1ea
2 changed files with 10 additions and 10 deletions

View File

@@ -78,11 +78,11 @@ class EventForm(FlaskForm):
def populate_obj(self, obj):
FlaskForm.populate_obj(self, obj)
tz = self.time_zone.data
timezone = self.time_zone.data
obj.time_zone = str(tz)
obj.start_time = tz.localize(self.start_time.data).astimezone(pytz.utc)
obj.end_time = tz.localize(self.end_time.data).astimezone(pytz.utc)
obj.time_zone = str(timezone)
obj.start_time = timezone.localize(self.start_time.data).astimezone(pytz.utc)
obj.end_time = timezone.localize(self.end_time.data).astimezone(pytz.utc)
def validate_end_time(self, field):
if field.data < self.start_time.data: