Closed iamromandev closed 1 year ago
I believe some thing like below could solve this loop issue.
resolved_username = username
while True:
postfix = str(i) if i > 0 else ""
resolved_username = f"{username}{postfix}"
existing_username = await self._repo.get_by_username(resolved_username)
if not existing_username:
break
i = i+1
Hello, @iftenet I didn't notice that loop, but I see it can be fixed as you proposed, want to contribute and open a Pull request?
Hello, @iftenet I didn't notice that loop, but I see it can be fixed as you proposed, want to contribute and open a Pull request?
I will be glad if you give me the opportunity to contribute.
Hello, @iftenet I didn't notice that loop, but I see it can be fixed as you proposed, want to contribute and open a Pull request?
I will be glad if you give me the opportunity to contribute.
Yes for sure!
I will assign it as a bug and you can work on it 🚀
@yezz123 I am going to create a PR but seems I have no permission to push.
ERROR: Permission to yezz123/authx.git denied to iftenet.
@yezz123 I am going to create a PR but seems I have no permission to push.
ERROR: Permission to yezz123/authx.git denied to iftenet.
You can fork the project and try to made your changes in your fork you will find it in this way, iftenet/authx.git then a yellow head with a button create PR
First Check
Example Code
Description
Could you please some one check this below code base where loop is indicating something ambiguous .
https://github.com/yezz123/authx/blob/eefba52c32222b88171e4b300d025937496d7e1f/authx/services/social.py#L127-L131
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.85.0
Python Version
3.9
Additional Context
No response