mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 17:56:12 +01:00
bug fix: cron counter
This commit is contained in:
@@ -61,9 +61,11 @@ class CronUtil:
|
|||||||
counter = 0
|
counter = 0
|
||||||
|
|
||||||
writeToFile = open(cronPath, 'w')
|
writeToFile = open(cronPath, 'w')
|
||||||
|
|
||||||
for items in data:
|
for items in data:
|
||||||
if counter == line:
|
if counter == line:
|
||||||
removedLine = items
|
removedLine = items
|
||||||
|
counter = counter + 1
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
writeToFile.writelines(items)
|
writeToFile.writelines(items)
|
||||||
|
|||||||
Reference in New Issue
Block a user