Skip to content

Commit b3ff96f

Browse files
committed
Fix wrong variable passed to function
1 parent 1f79554 commit b3ff96f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/hermes_plugin_software_card/curate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def create_report(self):
5858
else:
5959
print(
6060
"Find the Software CaRD user interface at:",
61-
environment.format_app_url("https://example.com", environment),
61+
environment.format_app_url("https://example.com", self._environment),
6262
)
6363

6464
def is_publication_approved(self) -> bool:

src/hermes_plugin_software_card/environment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def from_env(cls) -> Self | None:
111111

112112
return super().from_env()
113113

114-
def url_data(self):
114+
def url_data(self) -> dict[str, str]:
115115
"""Return the data to be passed to the Software CaRD user interface."""
116116
return {
117117
"gitlab_ci_server": self.ci_server_url,
@@ -165,7 +165,7 @@ def from_env(cls) -> Self | None:
165165

166166
return super().from_env()
167167

168-
def url_data(self):
168+
def url_data(self) -> dict[str, str]:
169169
"""Return the data to be passed to the Software CaRD user interface."""
170170
return {
171171
"github_ci_server": self.github_server_url,

0 commit comments

Comments
 (0)