1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 04:46:58 -05:00

Merge pull request #159 from deathbybandaid/dev

Improve Config for Zero values
This commit is contained in:
Deathbybandaid 2021-02-01 08:03:39 -05:00 committed by GitHub
commit 6ecf54a8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}