fix(scraper): relative python module import path
This commit is contained in:
parent
b12844c3a0
commit
514761733b
4 changed files with 62 additions and 55 deletions
|
|
@ -7,7 +7,7 @@ from dataclasses import asdict
|
|||
import cloudscraper
|
||||
from bs4 import BeautifulSoup, Tag
|
||||
|
||||
from models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
||||
from scrapers.models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
||||
|
||||
|
||||
def scrape(url: str) -> list[TestCase]:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from dataclasses import asdict
|
|||
import requests
|
||||
from bs4 import BeautifulSoup, Tag
|
||||
|
||||
from models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
||||
from scrapers.models import MetadataResult, ProblemSummary, TestCase, TestsResult
|
||||
|
||||
|
||||
def parse_problem_url(problem_input: str) -> str | None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue