Skip to content

Commit 71334ff

Browse files
committed
Minor fixes
1 parent 881712b commit 71334ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

kobo/apps/user_reports/utils/billing_and_usage_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def calculate_usage_batch(self, organizations: list, billing_dates: dict) -> dic
4242
return result
4343

4444
def get_effective_user_id(self, organization: Organization) -> int:
45-
return organization.owner.organization_user.user.pk
45+
return organization.owner_user_object.pk
4646

4747
def _get_submission_usage_batch(self, user_ids, date_ranges_by_user):
4848
if not user_ids:

kobo/settings/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,8 +1335,8 @@ def dj_stripe_request_callback_method():
13351335
},
13361336
# Schedule every 30 minutes
13371337
'refresh-user-report-snapshot': {
1338-
'task': 'kpi.tasks.refresh_user_report_snapshots',
1339-
'schedule': crontab(minute='*/15'),
1338+
'task': 'kobo.apps.user_reports.tasks.refresh_user_report_snapshots',
1339+
'schedule': crontab(minute='*/30'),
13401340
'options': {'queue': 'kpi_low_priority_queue'}
13411341
},
13421342
# Schedule every day at midnight UTC

0 commit comments

Comments
 (0)