File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 29
29
auth ,
30
30
device_id_is_allowed_for_user ,
31
31
get_api_keys_by_device_id ,
32
- get_user_from_fief_user ,
33
32
migration_complete ,
34
33
reduce_api_keys_to_device_ids ,
35
34
validate_environment ,
53
52
}
54
53
55
54
new_collections = {
56
- "Temperature " : "temp" ,
55
+ "temp " : "temp" ,
57
56
"Humidity" : "rh" ,
58
57
"Pressure" : "pressure" ,
59
58
"Lux" : "lux" ,
60
59
"CO2" : "ppm_CO2" ,
61
60
"pH" : "pH" ,
62
61
"Moisture" : "moisture_readings" ,
63
- "LiquidLevel " : "liquid" ,
64
- "RelayBoard " : "relays" ,
62
+ "liquid " : "liquid" ,
63
+ "relays " : "relays" ,
65
64
}
66
65
67
66
environment_translation = {
@@ -522,12 +521,8 @@ async def historical_data_route(
522
521
detail = f"User { fief_user } is not authorized to access device { device_id } " ,
523
522
)
524
523
525
- # TODO - Refactor this after migration to FreeTier complete
526
- user = get_user_from_fief_user (fief_user )
527
- if user :
528
- collection_name = user .collection_name
529
- else :
530
- collection_name = "FreeTier"
524
+ # TODO - Refactor this to support paid collections
525
+ collection_name = "FreeTier"
531
526
532
527
return sample_and_paginate_collection (
533
528
entity ,
You can’t perform that action at this time.
0 commit comments