Skip to content

Commit a638217

Browse files
committed
fix notifier test issue
1 parent 54449f8 commit a638217

File tree

2 files changed

+63
-59
lines changed

2 files changed

+63
-59
lines changed

src/jupyter/hacker_news_client.ipynb

Lines changed: 61 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@
8282
"cell_type": "code",
8383
"execution_count": 1,
8484
"id": "fdcc843e-a841-4850-8fb5-3ea37956606c",
85-
"metadata": {
86-
"collapsed": true,
87-
"jupyter": {
88-
"outputs_hidden": true
89-
}
90-
},
85+
"metadata": {},
9186
"outputs": [
9287
{
9388
"ename": "AttributeError",
@@ -296,74 +291,74 @@
296291
},
297292
{
298293
"cell_type": "code",
299-
"execution_count": 4,
294+
"execution_count": 5,
300295
"id": "b63e7f38-1a0e-4271-85cc-29c17584c78d",
301296
"metadata": {},
302297
"outputs": [
303298
{
304299
"name": "stdout",
305300
"output_type": "stream",
306301
"text": [
307-
"1. Ask HN: What are you working on (August 2024)?\n",
302+
"1. Strandbeest\n",
303+
" Link: https://www.strandbeest.com/\n",
304+
"2. Ask HN: What are you working on (August 2024)?\n",
308305
" Link: item?id=41342017\n",
309-
"2. Defenders think in lists, attackers think in graphs (2015)\n",
306+
"3. Defenders think in lists, attackers think in graphs (2015)\n",
310307
" Link: https://github.com/JohnLaTwC/Shared/blob/master/Defenders%20think%20in%20lists.%20Attackers%20think%20in%20graphs.%20As%20long%20as%20this%20is%20true%2C%20attackers%20win.md\n",
311-
"3. Neurotechnology Numbers Worth Knowing\n",
308+
"4. Postgres as a Search Engine\n",
309+
" Link: https://anyblockers.com/posts/postgres-as-a-search-engine\n",
310+
"5. A World Split Apart (1978)\n",
311+
" Link: https://www.solzhenitsyncenter.org/a-world-split-apart\n",
312+
"6. Modern Wardriving\n",
313+
" Link: https://simonroses.com/2023/12/modern-wardriving/\n",
314+
"7. Neurotechnology numbers worth knowing (2022)\n",
312315
" Link: https://milan.cvitkovic.net/writing/neurotechnology_numbers_worth_knowing/\n",
313-
"4. Papersway – a scrollable window management for Sway/i3wm\n",
314-
" Link: https://spwhitton.name/tech/code/papersway/\n",
315-
"5. Transfer energy from nitrogen to argon enables 2-wayl cascaded lasing in air\n",
316-
" Link: https://phys.org/news/2024-08-mechanism-energy-nitrogen-argon-enables.html\n",
317-
"6. AMD's Radeon 890M: Strix Point's Bigger iGPU\n",
318-
" Link: https://chipsandcheese.com/2024/08/24/amds-radeon-890m-strix-points-bigger-igpu/\n",
319-
"7. Serpent OS Prealpha0 Released\n",
320-
" Link: https://serpentos.com/blog/2024/08/01/serpent-os-prealpha0-released/\n",
321-
"8. Consistently Making Wrong Decisions Whilst Writing Recreational C\n",
322-
" Link: https://amodernist.com/texts/fun-c.html\n",
316+
"8. Degrees of Kevin Bacon Using Postgres\n",
317+
" Link: https://www.crunchydata.com/blog/six-degrees-of-kevin-bacon-postgres-style\n",
323318
"9. You are not dumb, you just lack the prerequisites\n",
324319
" Link: https://lelouch.dev/blog/you-are-probably-not-dumb/\n",
325-
"10. Generating Mazes\n",
320+
"10. Sticker on caption phone says that using the captions can be illegal. Why?\n",
321+
" Link: https://law.stackexchange.com/questions/104642/sticker-on-caption-phone-says-that-using-the-captions-can-be-illegal-why\n",
322+
"11. AMD's Radeon 890M: Strix Point's Bigger iGPU\n",
323+
" Link: https://chipsandcheese.com/2024/08/24/amds-radeon-890m-strix-points-bigger-igpu/\n",
324+
"12. Consistently Making Wrong Decisions Whilst Writing Recreational C\n",
325+
" Link: https://amodernist.com/texts/fun-c.html\n",
326+
"13. A 4096 channel event-based multielectrode array with asynchronous outputs\n",
327+
" Link: https://www.nature.com/articles/s41467-024-50783-2\n",
328+
"14. Generating Mazes\n",
326329
" Link: https://healeycodes.com/generating-mazes\n",
327-
"11. Show HN: Visualize database schemas with a single query\n",
330+
"15. Papersway – a scrollable window management for Sway/i3wm\n",
331+
" Link: https://spwhitton.name/tech/code/papersway/\n",
332+
"16. The Treacherous Optimization (2006)\n",
333+
" Link: https://ridiculousfish.com/blog/posts/old-age-and-treachery.html\n",
334+
"17. Transferring energy from nitrogen to argon enables 2-way cascaded lasing in air\n",
335+
" Link: https://phys.org/news/2024-08-mechanism-energy-nitrogen-argon-enables.html\n",
336+
"18. Ruby's official documentation just got a new look\n",
337+
" Link: https://docs.ruby-lang.org/en/master/\n",
338+
"19. Serpent OS Prealpha0 Released\n",
339+
" Link: https://serpentos.com/blog/2024/08/01/serpent-os-prealpha0-released/\n",
340+
"20. Show HN: Visualize database schemas with a single query\n",
328341
" Link: https://github.com/chartdb/chartdb\n",
329-
"12. Small Strings in Rust: smolstr vs. smartstring\n",
330-
" Link: https://fasterthanli.me/articles/small-strings-in-rust\n",
331-
"13. Hot Page – a graphical site builder\n",
332-
" Link: https://hot.page/\n",
333-
"14. Shell.how: Explain Shell Commands\n",
342+
"21. Anthropic Claude 3.5 can create icalendar files, so I did this\n",
343+
" Link: https://gregsramblings.com/stupid-but-useful-ai-tricks-creating-calendar-entries-from-an-image-using-anthropic-claude-35\n",
344+
"22. Show HN: Cursor AI Rules Directory (Open Source)\n",
345+
" Link: https://cursor.directory\n",
346+
"23. Shell.how: Explain Shell Commands\n",
334347
" Link: https://www.shell.how\n",
335-
"15. \"YOLO\" is not a valid hash construction\n",
336-
" Link: https://blog.trailofbits.com/2024/08/21/yolo-is-not-a-valid-hash-construction/\n",
337-
"16. Founder and CEO of Telegram arrested at French airport – report\n",
338-
" Link: https://old.reddit.com/r/worldnews/comments/1f0g013/founder_and_ceo_of_telegram_arrested_at_french/\n",
339-
"17. Postgres as a Search Engine\n",
340-
" Link: https://anyblockers.com/posts/postgres-as-a-search-engine\n",
341-
"18. NASA announces Boeing Starliner crew will return on SpaceX Crew-9\n",
342-
" Link: https://twitter.com/NASA/status/1827393397939634503\n",
343-
"19. Julius: Open-source reimplementation of Caesar III\n",
344-
" Link: https://github.com/bvschaik/julius\n",
345-
"20. ArcticDB: Why a Hedge Fund Built Its Own Database\n",
346-
" Link: https://www.infoq.com/presentations/arcticdb/\n",
347-
"21. Birds aren't real – how to create your own \"bird\"\n",
348+
"24. Hot Page – a graphical site builder\n",
349+
" Link: https://hot.page/\n",
350+
"25. Small Strings in Rust: smolstr vs. smartstring\n",
351+
" Link: https://fasterthanli.me/articles/small-strings-in-rust\n",
352+
"26. Show HN: Permify 1.0 – Open-source fine-grained authorization service\n",
353+
" Link: https://github.com/Permify/permify\n",
354+
"27. Birds aren't real – how to create your own \"bird\"\n",
348355
" Link: https://www.lampysecurity.com/post/birds-aren-t-real-how-to-create-your-own-bird\n",
349-
"22. Techniques for safe garbage collection in Rust\n",
350-
" Link: https://kyju.org/blog/rust-safe-garbage-collection/\n",
351-
"23. Ruby's official documentation just got a new look\n",
352-
" Link: https://docs.ruby-lang.org/en/master/\n",
353-
"24. Golang Interpreter Written in PHP\n",
354-
" Link: https://github.com/tuqqu/go-php\n",
355-
"25. Telegram founder Pavel Durov arrested at French airport\n",
356-
" Link: https://www.theguardian.com/media/article/2024/aug/24/telegram-app-founder-pavel-durov-arrested-at-french-airport\n",
357-
"26. Implementing React from Scratch\n",
358-
" Link: https://www.rob.directory/blog/react-from-scratch\n",
359-
"27. Show HN: High school robotics code/CAD/design binder release\n",
360-
" Link: https://www.chiefdelphi.com/t/team-341-miss-daisy-2024-cad-code-and-design-binder-release/467546\n",
361-
"28. The Vital Necessity of Very Old Books (2023)\n",
362-
" Link: https://www.millersbookreview.com/p/vital-necessity-of-very-old-books\n",
363-
"29. OneText (YC W23) Is Hiring a Chief of Staff\n",
364-
" Link: https://www.ycombinator.com/companies/onetext/jobs/B1RIFNb-founding-chief-of-staff\n",
365-
"30. Anthropic Claude 3.5 can create icalendar files, so I did this\n",
366-
" Link: https://gregsramblings.com/stupid-but-useful-ai-tricks-creating-calendar-entries-from-an-image-using-anthropic-claude-35\n"
356+
"28. Julius: Open-source reimplementation of Caesar III\n",
357+
" Link: https://github.com/bvschaik/julius\n",
358+
"29. \"YOLO\" is not a valid hash construction\n",
359+
" Link: https://blog.trailofbits.com/2024/08/21/yolo-is-not-a-valid-hash-construction/\n",
360+
"30. Techniques for safe garbage collection in Rust\n",
361+
" Link: https://kyju.org/blog/rust-safe-garbage-collection/\n"
367362
]
368363
}
369364
],
@@ -482,6 +477,14 @@
482477
"metadata": {},
483478
"outputs": [],
484479
"source": []
480+
},
481+
{
482+
"cell_type": "code",
483+
"execution_count": null,
484+
"id": "b280e52a-9588-470d-9b7c-1e044c6ccfdc",
485+
"metadata": {},
486+
"outputs": [],
487+
"source": []
485488
}
486489
],
487490
"metadata": {

src/notifier.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def send_email(self, repo, report):
3939
config = Config()
4040
notifier = Notifier(config.email)
4141

42+
test_repo = "DjangoPeng/openai-quickstart"
4243
test_report = """
4344
# DjangoPeng/openai-quickstart 项目进展
4445
@@ -54,4 +55,4 @@ def send_email(self, repo, report):
5455
- 关闭了一些未解决的问题。
5556
5657
"""
57-
notifier.notify(test_report)
58+
notifier.notify(test_repo, test_report)

0 commit comments

Comments
 (0)