Skip to content

Commit ef8942c

Browse files
committedMar 18, 2024
don't save
1 parent 8484848 commit ef8942c

File tree

4 files changed

+7
-243
lines changed

4 files changed

+7
-243
lines changed
 

‎.github/workflows/get-metrics.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22
import math
33
import os
4+
import sys
45

56
import cartopy
67
import matplotlib.cm as cm
@@ -11,16 +12,20 @@
1112
from google.analytics.data_v1beta.types import DateRange, Dimension, Metric, RunReportRequest
1213

1314
print('portal')
15+
sys.stdout.flush()
1416
PORTAL_ID = os.environ['PORTAL_ID']
1517
FOUNDATIONS_ID = os.environ['FOUNDATIONS_ID']
1618
COOKBOOKS_ID = os.environ['COOKBOOKS_ID']
1719

18-
print('got project IDs')
20+
print('got project IDs?')
21+
sys.stdout.flush()
1922
PRIVATE_KEY_ID = os.environ.get('PRIVATE_KEY_ID')
2023
PRIVATE_KEY = os.environ.get('PRIVATE_KEY').replace('$', '\n')
2124
print('Hello')
25+
sys.stdout.flush()
2226
print(len(PRIVATE_KEY))
2327
print('hi')
28+
sys.stdout.flush()
2429

2530
credentials_dict = {
2631
'type': 'service_account',
@@ -37,6 +42,7 @@
3742
}
3843

3944
print(credentials_dict)
45+
sys.stdout.flush()
4046
client = BetaAnalyticsDataClient.from_service_account_info(credentials_dict)
4147

4248

‎.github/workflows/map.ipynb

-230
This file was deleted.

‎.github/workflows/user_metrics.json

-1
This file was deleted.

‎portal/metrics.md

-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
11
# Metrics
22

3-
Last Updated: 2024-03-16 00:10:20.136900
4-
5-
Total Users:
6-
7-
Portal: 46.7K
8-
Foundations: 46.7K
9-
Cookbooks: 6.2K
10-
11-
![Top Pages](bar_plot_file)
12-
13-
![Users by Country](../.github/workflows/map_plot_file)

0 commit comments

Comments
 (0)