From 00f5aef7213bd4dba7c4d350d4b19edb78b1e4d2 Mon Sep 17 00:00:00 2001 From: simon987 Date: Sun, 28 Mar 2021 09:42:52 -0400 Subject: [PATCH] Update redis_publish to add subproject --- hexlib/env.py | 8 ++++++-- setup.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hexlib/env.py b/hexlib/env.py index caf73ed..b4fef03 100644 --- a/hexlib/env.py +++ b/hexlib/env.py @@ -17,9 +17,13 @@ def get_redis(): ) -def redis_publish(rdb, item, item_source, item_type, item_category="x"): +def redis_publish(rdb, item, item_project, item_type, item_subproject=None, item_category="x"): + + item_project = item_project.replace(".", "-") + item_subproject = item_subproject.replace(".", "-") + + item_source = item_project if not item_subproject else f"{item_project}.{item_subproject}" - item_source = item_source.replace(".", "-") item_type = item_type.replace(".", "-") item_category = item_category.replace(".", "-") diff --git a/setup.py b/setup.py index 8668ae0..864d934 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="hexlib", - version="1.32", + version="1.33", description="Misc utility methods", author="simon987", author_email="me@simon987.net",