Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Aug 21, 2023
1 parent 3132ecf commit b37627e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
from typing import List
from loguru import logger

from ideascale_importer.reviews_importer.importer import Importer, FrontendClient
from ideascale_importer.reviews_importer.importer import Importer
from ideascale_importer.utils import configure_logger

app = typer.Typer(add_completion=False)

@app.command(name="import")
def import_reviews(
ideascale_url: str = typer.Option(
FrontendClient.DEFAULT_API_URL,
...,
envvar="IDEASCALE_API_URL",
help="IdeaScale API URL",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
class FrontendClient:
"""IdeaScale front-end client."""

DEFAULT_API_URL = "https://cardano.ideascale.com"

def __init__(self, ideascale_url):
self.inner = utils.HttpClient(ideascale_url)

Expand Down Expand Up @@ -146,6 +144,9 @@ async def prepare_reviews(self):
output_path=self.output_path
)

async def import_reviews(self):
logger.info("Import reviews into Event db")

async def run(self):
"""Run the importer."""
if self.frontend_client is None:
Expand Down

0 comments on commit b37627e

Please sign in to comment.