Skip to content

Commit 5f9e8e7

Browse files
authored
fix-9030: location is no need when creating daily station (#9034)
* fix-9030: location is no need when creating daily station * fix-9030: location is no need when creating daily station
1 parent 6b84932 commit 5f9e8e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/station.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def before_patch(args, kwargs, data):
6363
if data.get('microlocation'):
6464
require_relationship(['microlocation'], data)
6565
else:
66-
if data['station_type'] in ('check in', 'check out', 'daily'):
66+
if data['station_type'] in ('check in', 'check out'):
6767
raise ObjectNotFound(
6868
{'parameter': 'microlocation'},
6969
"Microlocation: microlocation_id is missing from your request.",
@@ -107,7 +107,7 @@ def before_post(args, kwargs, data):
107107
if data.get('microlocation'):
108108
require_relationship(['microlocation'], data)
109109
else:
110-
if data['station_type'] in ('check in', 'check out', 'daily'):
110+
if data['station_type'] in ('check in', 'check out'):
111111
raise ObjectNotFound(
112112
{'parameter': 'microlocation'},
113113
"Microlocation: missing from your request.",

0 commit comments

Comments
 (0)