Skip to content

Commit

Permalink
replaces bth with run
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Apr 17, 2024
1 parent 15e6b2e commit bf0b2a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions frontend/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"""
from fastapi import HTTPException
from fastapi.responses import HTMLResponse, RedirectResponse
from ngwidgets.input_webserver import InputWebserver
from ngwidgets.input_webserver import InputWebserver, InputWebSolution
from ngwidgets.login import Login
from ngwidgets.users import Users
from ngwidgets.webserver import WebserverConfig, WebSolution
from ngwidgets.webserver import WebserverConfig
from nicegui import Client, app, ui

from frontend.server import Server
Expand Down Expand Up @@ -116,7 +116,7 @@ def configure_run(self):
InputWebserver.configure_run(self)
self.enableSites(self.args.sites)

class CmsSolution(WebSolution):
class CmsSolution(InputWebSolution):
"""
Content management solution
"""
Expand Down
7 changes: 2 additions & 5 deletions frontend/wikigrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ngwidgets.lod_grid import ListOfDictsGrid
from ngwidgets.progress import NiceguiProgressbar, Progressbar
from ngwidgets.widgets import Link
from nicegui import app, ui
from nicegui import ui, run
from wikibot3rd.smw import SMWClient
from wikibot3rd.wikiclient import WikiClient
from wikibot3rd.wikiuser import WikiUser
Expand Down Expand Up @@ -138,10 +138,7 @@ def check_version(self, wiki_url):
return mw_version

async def perform_wiki_checks(self, _msg):
self.future, result_coro = self.bth.execute_in_background(
self.run_wiki_checks, progress_bar=self.progressbar
)
await result_coro()
await run.io_bound(self.run_wiki_checks)

def run_wiki_checks(self, progress_bar: Progressbar = None):
"""
Expand Down

0 comments on commit bf0b2a7

Please # to comment.