Skip to content

Commit 8d5d461

Browse files
committed
init repo
0 parents  commit 8d5d461

15 files changed

Lines changed: 1748 additions & 0 deletions

File tree

.github/workflows/update.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Update Stats & Deploy
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
update-and-deploy:
19+
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: astral-sh/setup-uv@v5
28+
with:
29+
python-version: '3.12'
30+
31+
- name: Install dependencies
32+
run: uv sync
33+
34+
- name: Generate stats
35+
env:
36+
DATABASE: ${{ secrets.DATABASE }}
37+
run: uv run python main.py
38+
39+
- name: Commit updated data
40+
run: |
41+
git config user.name "github-actions[bot]"
42+
git config user.email "github-actions[bot]@users.noreply.github.com"
43+
git add data/stats.json
44+
git diff --staged --quiet || (git commit -m "chore: update stats [skip ci]" && git push)
45+
46+
- name: Build site
47+
run: |
48+
mkdir -p _site/assets
49+
cp index.html _site/
50+
cp assets/hcss_logo.svg assets/rubase_logo.svg _site/assets/
51+
52+
- uses: actions/configure-pages@v5
53+
54+
- uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: _site
57+
58+
- uses: actions/deploy-pages@v4
59+
id: deployment

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv
11+
12+
# Secrets
13+
.env

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

README.md

Whitespace-only changes.

assets/hcss_logo.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/housestyle.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* HCSS colouring based on house style*/
2+
Darkblue #1a3761
3+
Gold #dbad50
4+
Darkgray #a9abb8
5+
Lightgray #efefef
6+
Lightblue #82a0bc
7+
Green #a4a58d
8+
Red #c48469
9+
Yellow #d79c5a
10+
Purple #8B5CF6

assets/rubase_logo.svg

Lines changed: 419 additions & 0 deletions
Loading

assets/stats.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SELECT "database", COUNT(*) AS "num_docs", MAX("date") AS "last_updated"
2+
FROM public.uploaded_document
3+
GROUP BY "database"
4+
ORDER BY MAX("date") DESC NULLS LAST, COUNT(*) DESC;

data/stats.json

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"generated_at": "2026-03-23T08:29:28.190585+00:00",
3+
"sources": [
4+
{
5+
"database": "telegram_expert analysis",
6+
"num_docs": 191753,
7+
"last_updated": "2026-03-23"
8+
},
9+
{
10+
"database": "telegram_War correspondent",
11+
"num_docs": 173553,
12+
"last_updated": "2026-03-23"
13+
},
14+
{
15+
"database": "telegram_Experts",
16+
"num_docs": 78733,
17+
"last_updated": "2026-03-23"
18+
},
19+
{
20+
"database": "vk",
21+
"num_docs": 74660,
22+
"last_updated": "2026-03-23"
23+
},
24+
{
25+
"database": "bluesky",
26+
"num_docs": 46522,
27+
"last_updated": "2026-03-23"
28+
},
29+
{
30+
"database": "telegram_aggregator",
31+
"num_docs": 726250,
32+
"last_updated": "2026-03-22"
33+
},
34+
{
35+
"database": "telegram_Propagandist",
36+
"num_docs": 305810,
37+
"last_updated": "2026-03-22"
38+
},
39+
{
40+
"database": "telegram_local",
41+
"num_docs": 299055,
42+
"last_updated": "2026-03-22"
43+
},
44+
{
45+
"database": "telegram_Official",
46+
"num_docs": 211973,
47+
"last_updated": "2026-03-22"
48+
},
49+
{
50+
"database": "telegram_Cossack",
51+
"num_docs": 76014,
52+
"last_updated": "2026-03-22"
53+
},
54+
{
55+
"database": "telegram_military units",
56+
"num_docs": 47314,
57+
"last_updated": "2026-03-22"
58+
},
59+
{
60+
"database": "isw",
61+
"num_docs": 1569,
62+
"last_updated": "2026-03-22"
63+
},
64+
{
65+
"database": "kremlin",
66+
"num_docs": 1596,
67+
"last_updated": "2026-03-19"
68+
},
69+
{
70+
"database": "russiamatters",
71+
"num_docs": 3457,
72+
"last_updated": "2026-03-18"
73+
},
74+
{
75+
"database": "therussiaprogram",
76+
"num_docs": 881,
77+
"last_updated": "2026-03-18"
78+
},
79+
{
80+
"database": "wotr",
81+
"num_docs": 2072,
82+
"last_updated": "2026-03-12"
83+
},
84+
{
85+
"database": "state_duma",
86+
"num_docs": 325,
87+
"last_updated": "2026-03-12"
88+
},
89+
{
90+
"database": "integrum",
91+
"num_docs": 67304,
92+
"last_updated": "2026-03-10"
93+
},
94+
{
95+
"database": "realclearworld",
96+
"num_docs": 5470,
97+
"last_updated": "2026-03-04"
98+
},
99+
{
100+
"database": "ponars",
101+
"num_docs": 1592,
102+
"last_updated": "2026-02-23"
103+
},
104+
{
105+
"database": "youtube",
106+
"num_docs": 1606,
107+
"last_updated": "2026-02-22"
108+
},
109+
{
110+
"database": "VM",
111+
"num_docs": 105,
112+
"last_updated": "2026-02-01"
113+
},
114+
{
115+
"database": "federation_council",
116+
"num_docs": 85,
117+
"last_updated": "2025-11-24"
118+
},
119+
{
120+
"database": "EVP-MIL",
121+
"num_docs": 41487,
122+
"last_updated": "2025-07-21"
123+
},
124+
{
125+
"database": "EVP-VM",
126+
"num_docs": 154,
127+
"last_updated": "2022-12-31"
128+
},
129+
{
130+
"database": "google_scholar",
131+
"num_docs": 33710,
132+
"last_updated": "2024-12-31"
133+
}
134+
]
135+
}

0 commit comments

Comments
 (0)