Handle rocket launches with precision set to year
This commit is contained in:
		
							parent
							
								
									26a355aa19
								
							
						
					
					
						commit
						44fcf46178
					
				| 
						 | 
					@ -42,6 +42,8 @@ def format_time(time_str: str, net_precision: str) -> tuple[str, str | None]:
 | 
				
			||||||
    # Format the date based on precision
 | 
					    # Format the date based on precision
 | 
				
			||||||
    time_format: str | None = None
 | 
					    time_format: str | None = None
 | 
				
			||||||
    field2 = None
 | 
					    field2 = None
 | 
				
			||||||
 | 
					    if net_precision == "Year":
 | 
				
			||||||
 | 
					        time_format = "%Y"
 | 
				
			||||||
    if net_precision == "Month":
 | 
					    if net_precision == "Month":
 | 
				
			||||||
        time_format = "%b %Y"
 | 
					        time_format = "%b %Y"
 | 
				
			||||||
    if net_precision == "Week":
 | 
					    if net_precision == "Week":
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue