viur-framework / viur-cli

Command-line interface for managing and developing ViUR
MIT License
4 stars 6 forks source link

fixed conf getUserInfo #127

Closed Grashalmbeisser closed 5 months ago

Grashalmbeisser commented 6 months ago

What's the fix? There's technically no change, you just switched the quotes.

The Quotation from the Response lead to a wrong evaluation of the String, which lead to an error message.

phorward commented 5 months ago

The Quotation from the Response lead to a wrong evaluation of the String, which lead to an error message.

Can't get it...

$ python
Python 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def get_user_info():
...     return {"email": "lalalaa"}
...
>>> f'You are using the development Server with your default account: {get_user_info()["email"]}'
'You are using the development Server with your default account: lalalaa'
>>> f"You are using the development Server with your default account: {get_user_info()['email']}"
'You are using the development Server with your default account: lalalaa'
>>>