diff --git a/addon.xml b/addon.xml index 73c4f249..50610c40 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -21,6 +21,8 @@ false https://www.github.com/a4k-openproject/plugin.program.openwizard/ +2.0.7 + - Fix Error when using default log settings 2.0.6 - Fix regex for formatting tags - Fix theme selection after build install diff --git a/resources/libs/common/logging.py b/resources/libs/common/logging.py index 6cbca7a7..b8eced0f 100644 --- a/resources/libs/common/logging.py +++ b/resources/libs/common/logging.py @@ -83,7 +83,7 @@ def check_log(): elif CONFIG.CLEANWIZLOGBY == '1': # By Size maxsize = CONFIG.MAXWIZSIZE[int(float(CONFIG.CLEANSIZE))]*1024 if os.path.getsize(CONFIG.WIZLOG) >= maxsize: - start = len(lines)/2 + start = int(len(lines)/2) newfile = lines[start:] tools.write_to_file(CONFIG.WIZLOG, '\n'.join(newfile)) elif CONFIG.CLEANWIZLOGBY == '2': # By Lines