Skip to content

Commit

Permalink
Merge pull request #12155 from rtibbles/metered_not_yarded
Browse files Browse the repository at this point in the history
App script cleanup
  • Loading branch information
rtibbles authored Jun 12, 2024
2 parents d9de940 + 9f26a08 commit 3113959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions integration_testing/scripts/run_kolibri_app_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
from kolibri.utils.server import KolibriProcessBus


logger = logging.getLogger(__name__)


class AppPlugin(SimplePlugin):
def __init__(self, bus):
self.bus = bus
Expand All @@ -24,10 +27,10 @@ def RUN(self):
start_url = "http://127.0.0.1:{port}".format(
port=self.port
) + interface.get_initialize_url(auth_token="1234")
logging.info("Kolibri running at: {start_url}".format(start_url=start_url))
logger.info("Kolibri running at: {start_url}".format(start_url=start_url))


logging.info("Initializing Kolibri and running any upgrade routines")
logger.info("Initializing Kolibri and running any upgrade routines")

# activate app mode
enable_plugin("kolibri.plugins.app")
Expand All @@ -40,7 +43,7 @@ def RUN(self):
initialize()

# start kolibri server
logging.info("Starting kolibri server.")
logger.info("Starting kolibri server.")


def os_user(auth_token):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
// if we only include one of the keys for the extra_settings object
client({ method: 'GET', url: this.settingsUrl })
.then(({ data }) => {
logging.info('mounted', isMetered);
logging.info(data);
this.extra_settings = data.extra_settings;
this.selected = this.extra_settings.allow_download_on_metered_connection
? Options.USE_METERED
Expand Down

0 comments on commit 3113959

Please sign in to comment.