From df8a1d96cf4c90223edfa7eafc04b4c57b19b17e Mon Sep 17 00:00:00 2001 From: faebebin Date: Tue, 11 Jul 2023 14:41:28 +0200 Subject: [PATCH 1/2] Remove proably outdated comment --- docker-app/qfieldcloud/subscription/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-app/qfieldcloud/subscription/models.py b/docker-app/qfieldcloud/subscription/models.py index 3f8b1271c..2fed9ab42 100644 --- a/docker-app/qfieldcloud/subscription/models.py +++ b/docker-app/qfieldcloud/subscription/models.py @@ -833,7 +833,6 @@ def create_subscription( plan=plan, account=account, created_by=created_by, - # TODO in the future the status can be configured in the `Plan.initial_subscription_status` status=plan.initial_subscription_status, active_since=active_since, active_until=active_until, From 2b38b84e910de669298899137b6367f663ac2ca2 Mon Sep 17 00:00:00 2001 From: faebebin Date: Tue, 11 Jul 2023 14:41:28 +0200 Subject: [PATCH 2/2] Correct comment --- docker-app/qfieldcloud/subscription/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-app/qfieldcloud/subscription/models.py b/docker-app/qfieldcloud/subscription/models.py index 2fed9ab42..e0295bb0a 100644 --- a/docker-app/qfieldcloud/subscription/models.py +++ b/docker-app/qfieldcloud/subscription/models.py @@ -817,7 +817,7 @@ def create_subscription( TODO Python 3.11 the actual return type is Self """ if active_since: - # remove milliseconds as there will be slight shift with the remote system data + # remove microseconds as there will be slight shift with the remote system data active_since = active_since.replace(microsecond=0) if plan.is_trial: