File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -457,7 +457,7 @@ async def record_environment(
457
457
):
458
458
db = get_open_sensor_db ()
459
459
460
- # TODO - Refactor this after migration to FreeTier complete
460
+ # Paid customers may have their own collection
461
461
if user :
462
462
collection_name = user .collection_name
463
463
else :
Original file line number Diff line number Diff line change 1
1
import json
2
2
from datetime import datetime
3
3
from decimal import Decimal
4
- from typing import List
4
+ from typing import List , Optional
5
5
6
- from pydantic import BaseModel , validator
6
+ from pydantic import BaseModel , Field , validator
7
7
8
8
9
9
class TimestampModel (BaseModel ):
@@ -74,5 +74,5 @@ class VPD(BaseModel):
74
74
"""
75
75
76
76
timestamp : datetime
77
- vpd : float
77
+ vpd : Optional [ float ] = Field ( None , description = "The computed VPD value." )
78
78
unit : str
You can’t perform that action at this time.
0 commit comments