Skip to content

Commit c357f98

Browse files
committed
handle current-url hack, which is used only by acq_stats_reports
1 parent f99de35 commit c357f98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

twiki_wg/test_trending_page.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def get_parser():
1616
choices=[p.page for p in ssawg_trending_scraper.BasePage.page_classes],
1717
)
1818
parser.add_argument("--url")
19+
parser.add_argument("--url-current", default="")
1920
parser.add_argument("--output", type=Path, default="trending.html")
2021
return parser
2122

@@ -33,7 +34,7 @@ class MyPage(page_class):
3334
def get_url(self):
3435
if not args.url:
3536
return super().get_url()
36-
return args.url, ""
37+
return args.url, args.url_current
3738

3839
page = MyPage()
3940
page.parse_page()

0 commit comments

Comments
 (0)