Skip to content

Commit 644e7e9

Browse files
committed
Use variables for selected/current location references
1 parent d557c6e commit 644e7e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tigaserver_app/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ def _get_latitude_for_timezone(self):
13491349
# for the user to edit.
13501350
return (
13511351
self.selected_location_lat
1352-
if not self.current_location_lat and self.location_choice == "selected"
1352+
if not self.current_location_lat and self.location_choice == self.LOCATION_SELECTED
13531353
else self.current_location_lat
13541354
)
13551355

@@ -1362,7 +1362,7 @@ def _get_longitude_for_timezone(self):
13621362
# for the user to edit.
13631363
return (
13641364
self.selected_location_lon
1365-
if not self.current_location_lon and self.location_choice == "selected"
1365+
if not self.current_location_lon and self.location_choice == self.LOCATION_SELECTED
13661366
else self.current_location_lon
13671367
)
13681368

0 commit comments

Comments
 (0)