Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Nacional to global events #67

Merged
merged 2 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@

app.mount("/static", StaticFiles(directory="app/static"), name="static")


# Ruta para servir el favicon
@app.get("/favicon.ico", include_in_schema=False)
async def favicon():
return FileResponse("app/static/FAVICON.png")


# Ruta para servir un solo fichero estático
@app.get("/static-events", include_in_schema=False)
async def static_file():
Expand Down
5 changes: 3 additions & 2 deletions notify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"Andalucía", "Cataluña", "Comunidad de Madrid", "Comunidad Valenciana",
"Castilla-La Mancha", "País Vasco", "Principado de Asturias", "Castilla y León",
"Extremadura", "Illes Balears", "Cantabria", "Galicia", "Región de Murcia",
"Comunidad Foral de Navarra", "Canarias", "La Rioja", "Aragón", "Ceuta", "Melilla"
"Comunidad Foral de Navarra", "Canarias", "La Rioja", "Aragón", "Ceuta", "Nacional", "Melilla"
]
# Lista de provincias
provincias = {
Expand All @@ -48,6 +48,7 @@
"La Rioja": ["La Rioja"],
"Aragón": ["Huesca", "Teruel", "Zaragoza"],
"Ceuta": ["Ceuta"],
"Nacional": ["Nacional"],
"Melilla": ["Melilla"]
}

Expand Down Expand Up @@ -432,4 +433,4 @@ def main() -> None:
application.run_polling()

if __name__ == '__main__':
main()
main()
Loading