s/persistant/persistent/g (#254)

pull/260/head
Vasily Tarasov 7 years ago committed by rbiasini
parent 53b177b3c1
commit f0a6db351e
  1. 38
      common/params.py

@ -37,7 +37,7 @@ def mkdirs_exists_ok(path):
raise raise
class TxType(Enum): class TxType(Enum):
PERSISTANT = 1 PERSISTENT = 1
CLEAR_ON_MANAGER_START = 2 CLEAR_ON_MANAGER_START = 2
CLEAR_ON_CAR_START = 3 CLEAR_ON_CAR_START = 3
@ -47,37 +47,37 @@ class UnknownKeyName(Exception):
keys = { keys = {
# written: manager # written: manager
# read: loggerd, uploaderd, offroad # read: loggerd, uploaderd, offroad
"DongleId": TxType.PERSISTANT, "DongleId": TxType.PERSISTENT,
"AccessToken": TxType.PERSISTANT, "AccessToken": TxType.PERSISTENT,
"Version": TxType.PERSISTANT, "Version": TxType.PERSISTENT,
"TrainingVersion": TxType.PERSISTANT, "TrainingVersion": TxType.PERSISTENT,
"GitCommit": TxType.PERSISTANT, "GitCommit": TxType.PERSISTENT,
"GitBranch": TxType.PERSISTANT, "GitBranch": TxType.PERSISTENT,
"GitRemote": TxType.PERSISTANT, "GitRemote": TxType.PERSISTENT,
# written: baseui # written: baseui
# read: ui, controls # read: ui, controls
"IsMetric": TxType.PERSISTANT, "IsMetric": TxType.PERSISTENT,
"IsRearViewMirror": TxType.PERSISTANT, "IsRearViewMirror": TxType.PERSISTENT,
"IsFcwEnabled": TxType.PERSISTANT, "IsFcwEnabled": TxType.PERSISTENT,
"HasAcceptedTerms": TxType.PERSISTANT, "HasAcceptedTerms": TxType.PERSISTENT,
"CompletedTrainingVersion": TxType.PERSISTANT, "CompletedTrainingVersion": TxType.PERSISTENT,
"IsUploadVideoOverCellularEnabled": TxType.PERSISTANT, "IsUploadVideoOverCellularEnabled": TxType.PERSISTENT,
# written: visiond # written: visiond
# read: visiond, controlsd # read: visiond, controlsd
"CalibrationParams": TxType.PERSISTANT, "CalibrationParams": TxType.PERSISTENT,
# written: visiond # written: visiond
# read: visiond, ui # read: visiond, ui
"CloudCalibration": TxType.PERSISTANT, "CloudCalibration": TxType.PERSISTENT,
# written: controlsd # written: controlsd
# read: radard # read: radard
"CarParams": TxType.CLEAR_ON_CAR_START, "CarParams": TxType.CLEAR_ON_CAR_START,
"Passive": TxType.PERSISTANT, "Passive": TxType.PERSISTENT,
"DoUninstall": TxType.CLEAR_ON_MANAGER_START, "DoUninstall": TxType.CLEAR_ON_MANAGER_START,
"ShouldDoUpdate": TxType.CLEAR_ON_MANAGER_START, "ShouldDoUpdate": TxType.CLEAR_ON_MANAGER_START,
"IsUpdateAvailable": TxType.PERSISTANT, "IsUpdateAvailable": TxType.PERSISTENT,
"RecordFront": TxType.PERSISTANT, "RecordFront": TxType.PERSISTENT,
} }
def fsync_dir(path): def fsync_dir(path):

Loading…
Cancel
Save