Skip to content

Commit

Permalink
fix: listing methods when empty projo
Browse files Browse the repository at this point in the history
  • Loading branch information
tngTUDOR committed Sep 17, 2024
1 parent c0d7598 commit c2ca723
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ui Changelog

## [0.42.0]

+ Fix method listing when project is empty

## [0.41.0]

+ fix #51: show cfs for namespaced methods
Expand Down
2 changes: 1 addition & 1 deletion bw2ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# Add functions and variables you want exposed in `bw2ui.` namespace here
)

__version__ = "0.41.0"
__version__ = "0.42.0"
2 changes: 1 addition & 1 deletion bw2ui/bin/bw2_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def list_methods(self):
for m in methods_:
m_names.add(m[0])
m_names = sorted(m_names)
if has_namespaced_methods():
if len(methods_) > 0 and has_namespaced_methods():
self.set_current_options(
{
"type": "method_namespaces",
Expand Down

0 comments on commit c2ca723

Please sign in to comment.