astrodbtoolkit / astrodbtoolkit/astrodb_utils

`Find_source_in_db` returns a single element list

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
low priority
Dominant language
Python
Stars
0
Forks
10
PR merge metrics
No merged PRs in 30d

Description

It's not ideal that `find_source_in_db` returns a single element list. Ideally, it would return a string. I see how that could make error handeling a little harder (since the function will return either a string or a list), but worth thinking about how to improve.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the find_source_in_db function and inspect its callers to understand how the current single-element list is consumed, especially in error handling. Clarify the intended return contract and review any existing tests or usage examples before changing it; done means the behavior is consistent for all relevant lookup outcomes and callers handle it correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.