1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 02:26:59 -05:00

Improve Config for Zero values

This commit is contained in:
deathbybandaid 2021-02-01 08:01:52 -05:00
parent b1d4e13c31
commit 0d185e6704
2 changed files with 3 additions and 1 deletions

View File

@ -187,6 +187,8 @@ class Config():
confvalue = None
elif key == "xmltv_offset":
confvalue = str(confvalue)
elif str(confvalue) in ["0"]:
confvalue = 0
elif isint(confvalue):
confvalue = int(confvalue)
elif isfloat(confvalue):

View File

@ -6,7 +6,7 @@
"config_web": true
},
"access_level":{
"value": 0,
"value": "0",
"config_file": true,
"config_web": true
}