Skip to content

Commit

Permalink
path -> projectIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Jan 27, 2025
1 parent db56db0 commit 9eb8073
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fontra_rcjk/projectmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ async def login(self, username: str, password: str) -> str | None:
)
return token

async def projectAvailable(self, path: str, token: str) -> bool:
async def projectAvailable(self, projectIdentifier: str, token: str) -> bool:
client = self.authorizedClients[token]
return await client.projectAvailable(path)
return await client.projectAvailable(projectIdentifier)

async def getProjectList(self, token: str) -> list[str]:
client = self.authorizedClients[token]
Expand Down Expand Up @@ -174,9 +174,9 @@ async def aclose(self):
for fontHandler in self.fontHandlers.values():
await fontHandler.aclose()

async def projectAvailable(self, path: str) -> bool:
async def projectAvailable(self, projectIdentifier: str) -> bool:
await self._setupProjectList()
return path in self.projectMapping
return projectIdentifier in self.projectMapping

async def getProjectList(self) -> list[str]:
await self._setupProjectList(True)
Expand Down

0 comments on commit 9eb8073

Please sign in to comment.