forked from MapComplete/MapComplete
		
	More stats
This commit is contained in:
		
							parent
							
								
									716fda39aa
								
							
						
					
					
						commit
						e93bf6a1f2
					
				
					 11 changed files with 13 additions and 6 deletions
				
			
		|  | @ -97,6 +97,8 @@ class StatsDownloader { | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |         return [] | ||||||
|  |          | ||||||
|         while (url) { |         while (url) { | ||||||
|             ScriptUtils.erasableLog(`Downloading stats for ${year}-${month}-${day}, page ${page} ${url}`) |             ScriptUtils.erasableLog(`Downloading stats for ${year}-${month}-${day}, page ${page} ${url}`) | ||||||
|             const result = await Utils.downloadJson(url, headers) |             const result = await Utils.downloadJson(url, headers) | ||||||
|  | @ -191,10 +193,7 @@ async function main(): Promise<void> { | ||||||
|         .map(path => JSON.parse(readFileSync("Docs/Tools/stats/" + path, "utf-8")).features)); |         .map(path => JSON.parse(readFileSync("Docs/Tools/stats/" + path, "utf-8")).features)); | ||||||
|     allFeatures = allFeatures.filter(f => f?.properties !== undefined && (f.properties.editor === null || f.properties.editor.toLowerCase().startsWith("mapcomplete"))) |     allFeatures = allFeatures.filter(f => f?.properties !== undefined && (f.properties.editor === null || f.properties.editor.toLowerCase().startsWith("mapcomplete"))) | ||||||
| 
 | 
 | ||||||
|     allFeatures = allFeatures.filter(f => f.properties.metadata.theme !== "EMPTY CS") |     allFeatures = allFeatures.filter(f => f.properties.metadata?.theme !== "EMPTY CS") | ||||||
| 
 |  | ||||||
|     const noEditor = allFeatures.filter(f => f.properties.editor === null).map(f => "https://www.osm.org/changeset/" + f.id) |  | ||||||
|     writeFileSync("missing_editor.json", JSON.stringify(noEditor, null, "  ")); |  | ||||||
| 
 | 
 | ||||||
|     if (process.argv.indexOf("--no-graphs") >= 0) { |     if (process.argv.indexOf("--no-graphs") >= 0) { | ||||||
|         return |         return | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2020-12.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2020-12.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2021-11.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2021-11.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2021-2.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2021-2.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2021-3.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2021-3.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2021-4.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2021-4.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2021-8.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2021-8.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2022-6.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2022-6.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								Docs/Tools/stats/stats.2022-7.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								Docs/Tools/stats/stats.2022-7.json
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								test.ts
									
										
									
									
									
								
							|  | @ -1,3 +1,3 @@ | ||||||
| import StatisticsGUI from "./UI/StatisticsGUI"; | import StatisticsGUI from "./UI/StatisticsGUI"; | ||||||
| 
 | 
 | ||||||
| new StatisticsGUI().setup() | new StatisticsGUI().AttachTo("maindiv") | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue