queue-local 0.0.58__tar.gz → 0.0.59__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {queue_local-0.0.58 → queue_local-0.0.59}/PKG-INFO +1 -1
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local/src/database_queue.py +3 -3
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local.egg-info/PKG-INFO +1 -1
- {queue_local-0.0.58 → queue_local-0.0.59}/setup.py +1 -1
- {queue_local-0.0.58 → queue_local-0.0.59}/README.md +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/pyproject.toml +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local/src/__init__.py +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local/src/our_queue.py +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local.egg-info/SOURCES.txt +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local.egg-info/dependency_links.txt +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local.egg-info/requires.txt +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/queue_local.egg-info/top_level.txt +0 -0
- {queue_local-0.0.58 → queue_local-0.0.59}/setup.cfg +0 -0
|
@@ -65,8 +65,8 @@ class DatabaseQueue(OurQueue, GenericCRUD, metaclass=MetaLogger, object=queue_lo
|
|
|
65
65
|
is_test_data=is_test_data)
|
|
66
66
|
self.user_context = UserContext()
|
|
67
67
|
|
|
68
|
-
def push(self, data_dict: dict) -> int:
|
|
69
|
-
queue_dict=data_dict
|
|
68
|
+
def push(self, data_dict: dict = None, queue_dict: dict = None) -> int:
|
|
69
|
+
queue_dict=queue_dict or data_dict
|
|
70
70
|
"""Pushes a new entry to the queue and returns the new queue id.
|
|
71
71
|
queue_dict consists of columns and values to insert into the queue table."""
|
|
72
72
|
created_user_id = UserContext().get_effective_user_id()
|
|
@@ -149,7 +149,7 @@ class DatabaseQueue(OurQueue, GenericCRUD, metaclass=MetaLogger, object=queue_lo
|
|
|
149
149
|
return action_ids if len(action_ids) != 1 else f"({action_ids[0]})"
|
|
150
150
|
|
|
151
151
|
@staticmethod
|
|
152
|
-
def _fix_parameters_json(data_dict: dict):
|
|
152
|
+
def _fix_parameters_json(data_dict: dict = None):
|
|
153
153
|
queue_dict=data_dict
|
|
154
154
|
"""Fixes the parameters_json argument to fit the SQL syntax (parameters_json must be a string)"""
|
|
155
155
|
for key, value in queue_dict.items():
|
|
@@ -5,7 +5,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name=PACKAGE_NAME, # https://pypi.org/project/queue-local
|
|
8
|
-
version='0.0.
|
|
8
|
+
version='0.0.59',
|
|
9
9
|
author="Circles",
|
|
10
10
|
author_email="info@circles.life",
|
|
11
11
|
url=f"https://github.com/circles-zone/{PACKAGE_NAME}-python-package",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|