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

Very Minor: Sessions without collections will not be saved. #5

Open
being-peace opened this issue Dec 10, 2023 · 0 comments
Open

Very Minor: Sessions without collections will not be saved. #5

being-peace opened this issue Dec 10, 2023 · 0 comments

Comments

@being-peace
Copy link
Contributor

ALP/alp.py

Line 191 in 3ba5849

for collection_uuid in collection_ids:

For each collection there will be row inserted in the "sessions" table. If no collection is selected, no row is inserted. Possible workaround:

if not collection_ids: collection_ids = [None]

And filter out None in

def load_collections(self, session_uuid) -> list:

return [d[0] for d in data]

return [d[0] for d in data if d[0]]

Yet, it is not a severe problem.

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

1 participant