Remove code that was commented out
This commit is contained in:
		
							parent
							
								
									ef45d9c508
								
							
						
					
					
						commit
						4bde0d8524
					
				| 
						 | 
				
			
			@ -288,24 +288,14 @@ def get_accommodation(from_date: date, filepath: str) -> list[Event]:
 | 
			
		|||
        )
 | 
			
		||||
        from_date = item["from"]
 | 
			
		||||
        to_date = item["to"]
 | 
			
		||||
        # nights = (to_date.date() - from_date.date()).days
 | 
			
		||||
        # night_str = f"{nights} nights" if nights != 1 else "1 night"
 | 
			
		||||
        e = Event(
 | 
			
		||||
            date=from_date,
 | 
			
		||||
            end_date=to_date,
 | 
			
		||||
            name="accommodation",
 | 
			
		||||
            # title=f"check-in {title} ({night_str})",
 | 
			
		||||
            title=title,
 | 
			
		||||
            url=item.get("url"),
 | 
			
		||||
        )
 | 
			
		||||
        events.append(e)
 | 
			
		||||
        # checkout = Event(
 | 
			
		||||
        #     date=to_date,
 | 
			
		||||
        #     name="accommodation",
 | 
			
		||||
        #     title="check-out " + title,
 | 
			
		||||
        #     url=item.get("url"),
 | 
			
		||||
        # )
 | 
			
		||||
        # events += [checkin, checkout]
 | 
			
		||||
    return events
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue