aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/state_impl
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-08 19:07:12 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-08 19:08:39 +0200
commitb2055032cb914fd160270971dd1da46f8c7c838d (patch)
treebd1a67b9a708af1eae704e208bd50849e4b7f1f7 /src/hydrilla/proxy/state_impl
parent4f016d740e3c15e72b944aa0d6f82ca863d1ae67 (diff)
downloadhaketilo-hydrilla-b2055032cb914fd160270971dd1da46f8c7c838d.tar.gz
haketilo-hydrilla-b2055032cb914fd160270971dd1da46f8c7c838d.zip
[proxy] remove TODOs from library and package pages and make package page display enable/disable/forget buttons
Diffstat (limited to 'src/hydrilla/proxy/state_impl')
-rw-r--r--src/hydrilla/proxy/state_impl/items.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hydrilla/proxy/state_impl/items.py b/src/hydrilla/proxy/state_impl/items.py
index 010b8ca..6a41300 100644
--- a/src/hydrilla/proxy/state_impl/items.py
+++ b/src/hydrilla/proxy/state_impl/items.py
@@ -290,7 +290,8 @@ class ConcreteMappingRef(st.MappingRef):
if version_id_to_activate is not None:
new_active_version_id = version_id_to_activate
- elif enabled == st.EnabledStatus.ENABLED:
+ elif enabled == st.EnabledStatus.ENABLED and \
+ old_active_version_id is not None:
new_active_version_id = str(old_active_version_id)
else:
new_active_version_id = None