From 3ddef4dcb90d5b82923f9cb6b472513b86563629 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Tue, 3 Sep 2024 18:28:26 +0330 Subject: [PATCH 1/3] feat: using newer neo4j lib version! --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 958fe33..993c0ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,7 @@ tc-messageBroker==1.6.7 sentry-sdk rq redis -tc-neo4j-lib==2.0.1 +tc-neo4j-lib==2.0.2 pybars3 backoff==2.2.1 motor==3.5.1 \ No newline at end of file diff --git a/setup.py b/setup.py index af49967..4c12d39 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="tc-analyzer-lib", - version="1.4.6", + version="1.4.7", author="Mohammad Amin Dadgar, TogetherCrew", maintainer="Mohammad Amin Dadgar", maintainer_email="dadgaramin96@gmail.com", From 1978e2feb0cb1cb99fc7ff81521660d928bf6c6d Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 5 Sep 2024 11:15:09 +0330 Subject: [PATCH 2/3] fix: heatmaps negative iteration number! --- tc_analyzer_lib/metrics/heatmaps/heatmaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc_analyzer_lib/metrics/heatmaps/heatmaps.py b/tc_analyzer_lib/metrics/heatmaps/heatmaps.py index a0c554f..23432cf 100644 --- a/tc_analyzer_lib/metrics/heatmaps/heatmaps.py +++ b/tc_analyzer_lib/metrics/heatmaps/heatmaps.py @@ -81,7 +81,7 @@ async def start( heatmaps_results = [] index = 0 - max_index = (analytics_date - datetime.now()).days + max_index = (datetime.now() - analytics_date).days while analytics_date.date() < datetime.now().date(): start_day = analytics_date.replace( hour=0, minute=0, second=0, microsecond=0 From f334d7df4d79f704235adc8d0113d9ba373400de Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 5 Sep 2024 11:25:42 +0330 Subject: [PATCH 3/3] feat: bump neo4j lib version! more efficiently query running. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 993c0ee..6e1c681 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,7 @@ tc-messageBroker==1.6.7 sentry-sdk rq redis -tc-neo4j-lib==2.0.2 +tc-neo4j-lib==2.0.3 pybars3 backoff==2.2.1 motor==3.5.1 \ No newline at end of file