Skip to content

Commit

Permalink
Remove commented code and import
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed Dec 1, 2023
1 parent 99d4ae2 commit ba888ad
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/android_app_plugin/kolibri_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from jnius import autoclass
from kolibri.core.tasks.hooks import StorageHook
from kolibri.core.tasks.job import Priority
from kolibri.core.tasks.job import State
from kolibri.plugins import KolibriPluginBase
from kolibri.plugins.hooks import register_hook

Expand Down Expand Up @@ -77,19 +76,6 @@ def update(self, job, orm_job, state=None, **kwargs):
total_progress,
)

# if (
# not job.long_running
# and state
# in {
# State.COMPLETED,
# State.CANCELED,
# State.FAILED,
# }
# ):
# # This is a short running job and it has just finished
# # Remove the notification
# Notifications.hideNotification()

def clear(self, job, orm_job):
logger.info("Clearing task {} for job {}".format(job.func, orm_job.id))
Task.clear(orm_job.id)

0 comments on commit ba888ad

Please sign in to comment.