mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-20 10:16:42 +00:00
Update redis_publish to add subproject
This commit is contained in:
parent
021da84433
commit
00f5aef721
@ -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_type = item_type.replace(".", "-")
|
||||||
item_category = item_category.replace(".", "-")
|
item_category = item_category.replace(".", "-")
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="hexlib",
|
name="hexlib",
|
||||||
version="1.32",
|
version="1.33",
|
||||||
description="Misc utility methods",
|
description="Misc utility methods",
|
||||||
author="simon987",
|
author="simon987",
|
||||||
author_email="me@simon987.net",
|
author_email="me@simon987.net",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user