Compare commits
	
		
			2 commits
		
	
	
		
			ac16bb9dab
			...
			155569419a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							
							
								
									
								
								 | 
						155569419a | ||
| 
							
							
								
									
								
								 | 
						fcc2cdd6d4 | 
| 
						 | 
					@ -11,7 +11,8 @@ This is a personal agenda web application built with Flask that tracks various e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Python Environment
 | 
					## Python Environment
 | 
				
			||||||
- Always use `python3` directly, never `python`
 | 
					- Always use `python3` directly, never `python`
 | 
				
			||||||
- Run `black` code formatter after creating or modifying Python files
 | 
					- Run `black` code formatter on modified code after creating or modifying Python files
 | 
				
			||||||
 | 
					- Avoid running `black .`
 | 
				
			||||||
- Main entry point: `python3 web_view.py` (Flask app on port 5000)
 | 
					- Main entry point: `python3 web_view.py` (Flask app on port 5000)
 | 
				
			||||||
- Tests: Use `pytest` (tests in `/tests/` directory)
 | 
					- Tests: Use `pytest` (tests in `/tests/` directory)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,4 +27,4 @@ This is a personal agenda web application built with Flask that tracks various e
 | 
				
			||||||
## Git Workflow
 | 
					## Git Workflow
 | 
				
			||||||
- Avoid committing unrelated untracked files (e.g., `node_modules/`, build artifacts)
 | 
					- Avoid committing unrelated untracked files (e.g., `node_modules/`, build artifacts)
 | 
				
			||||||
- Only commit relevant project files
 | 
					- Only commit relevant project files
 | 
				
			||||||
- Personal data directory (`personal-data/`) is excluded from git
 | 
					- Personal data directory (`personal-data/`) is excluded from git
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,7 +22,7 @@ def format_list_with_ampersand(items: list[str]) -> str:
 | 
				
			||||||
    return ""
 | 
					    return ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_country(alpha_2: str|None) -> pycountry.db.Country | None:
 | 
					def get_country(alpha_2: str | None) -> pycountry.db.Country | None:
 | 
				
			||||||
    """Lookup country by alpha-2 country code."""
 | 
					    """Lookup country by alpha-2 country code."""
 | 
				
			||||||
    if not alpha_2:
 | 
					    if not alpha_2:
 | 
				
			||||||
        return None
 | 
					        return None
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@ def get_country(alpha_2: str|None) -> pycountry.db.Country | None:
 | 
				
			||||||
        return None
 | 
					        return None
 | 
				
			||||||
    if alpha_2 == "xk":
 | 
					    if alpha_2 == "xk":
 | 
				
			||||||
        return pycountry.db.Country(
 | 
					        return pycountry.db.Country(
 | 
				
			||||||
            flag="\U0001F1FD\U0001F1F0", name="Kosovo", alpha_2="xk"
 | 
					            flag="\U0001f1fd\U0001f1f0", name="Kosovo", alpha_2="xk"
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    country: pycountry.db.Country | None = None
 | 
					    country: pycountry.db.Country | None = None
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,6 +40,7 @@ SCHENGEN_COUNTRIES = {
 | 
				
			||||||
    "ch",  # Switzerland
 | 
					    "ch",  # Switzerland
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def is_schengen_country(country_code: str) -> bool:
 | 
					def is_schengen_country(country_code: str) -> bool:
 | 
				
			||||||
    """Check if a country is in the Schengen area."""
 | 
					    """Check if a country is in the Schengen area."""
 | 
				
			||||||
    if not country_code or not isinstance(country_code, str):
 | 
					    if not country_code or not isinstance(country_code, str):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue