Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of listed profiles #67

Closed
kAlvaro opened this issue Dec 13, 2022 · 3 comments
Closed

Order of listed profiles #67

kAlvaro opened this issue Dec 13, 2022 · 3 comments

Comments

@kAlvaro
Copy link

kAlvaro commented Dec 13, 2022

Are profiles listed in any particular order?

$ konsave -l
Konsave profiles:
ID      NAME
1       alvaro-20221130_080810
2       alvaro-20221125_080803
3       alvaro-20221213_090958
4       alvaro-20221128_090926
5       alvaro-20221130_070734

In this example, the latest profile is shown right in the middle (nr. 3).

@Prayag2
Copy link
Owner

Prayag2 commented Dec 17, 2022

The order in which the profiles are listed is determined by the os.listdir() function in Python (no specific order). I can, however, make it print in alphabetical order.

@kAlvaro
Copy link
Author

kAlvaro commented Dec 17, 2022

Not sure what order would be more useful for most people (alphabetical or creation time) but directory order is definitively not especially helpful.

@Prayag2
Copy link
Owner

Prayag2 commented Jan 30, 2023

Fixed.

@Prayag2 Prayag2 closed this as completed Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants