Code Monkey home page Code Monkey logo

Comments (6)

iamromandev avatar iamromandev commented on May 18, 2024 1

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

from authx.

yezz123 avatar yezz123 commented on May 18, 2024 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?

from authx.

iamromandev avatar iamromandev commented on May 18, 2024 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?

I will be glad if you give me the opportunity to contribute.

from authx.

yezz123 avatar yezz123 commented on May 18, 2024 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?

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 🚀

from authx.

yezz123 avatar yezz123 commented on May 18, 2024 1

@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

from authx.

iamromandev avatar iamromandev commented on May 18, 2024

@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.

from authx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.