File tree Expand file tree Collapse file tree 2 files changed +17
-30
lines changed Expand file tree Collapse file tree 2 files changed +17
-30
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,16 @@ def tomarkdown:
81
81
createdAt : "2024-12-13 12:00:00" ,
82
82
website : "https://zimplerkasinot.net/" ,
83
83
image : "https://github.com/user-attachments/assets/cbeddc6e-827a-41eb-b669-a0a4575d068a"
84
- }] |
84
+ }, {
85
+ isActive : true ,
86
+ tier : 1 ,
87
+ MemberId : "Youraffe2" ,
88
+ image : true ,
89
+ createdAt : "2025-01-13 12:00:00" ,
90
+ website : "https://verovapaatnettikasinot.net/" ,
91
+ image : "https://github.com/user-attachments/assets/686bae37-cc29-45e6-b079-ea0bdc101f4e"
92
+ }
93
+ ] |
85
94
86
95
def markdown : $markdown ;
87
96
Original file line number Diff line number Diff line change @@ -24,35 +24,13 @@ async function curl(out) {
24
24
for ( const [ i , tier ] of tiers . entries ( ) ) {
25
25
const url = `https://opencollective.com/nodemon/members/all.json?TierId=${ tier } &limit=100&offset=` ;
26
26
let offset = 0 ;
27
- try {
28
- do {
29
- console . log ( `Fetching ${ url } ${ offset } ` ) ;
30
- let next = await get ( url + offset ) ;
31
-
32
- if ( ! Array . isArray ( next ) ) {
33
- console . error (
34
- `Error: Expected array but got ${ typeof next } from ${ url } ${ offset } `
35
- ) ;
36
- console . error (
37
- 'Response:' ,
38
- JSON . stringify ( next ) . substring ( 0 , 200 ) + '...'
39
- ) ;
40
- break ;
41
- }
42
-
43
- if ( next . length === 0 ) {
44
- console . log ( `No more results for tier ${ tier } ` ) ;
45
- break ;
46
- }
47
-
48
- res . push ( ...next . map ( ( _ ) => ( { ..._ , tier : i } ) ) ) ;
49
- offset += next . length ;
50
- } while ( offset % 100 === 0 && offset > 0 ) ;
51
- } catch ( err ) {
52
- console . error (
53
- `Error fetching tier ${ tier } at offset ${ offset } : ${ err . message } `
54
- ) ;
55
- }
27
+ do {
28
+ let next = await get ( url + offset ) ;
29
+ console . log ( url + offset ) ;
30
+ res . push ( ...next . map ( ( _ ) => ( { ..._ , tier : i } ) ) ) ;
31
+ offset += next . length ;
32
+ if ( next . length === 0 ) break ;
33
+ } while ( offset % 100 === 0 ) ;
56
34
}
57
35
58
36
if ( res . length === 0 ) {
You can’t perform that action at this time.
0 commit comments