Showing
3 changed files
with
7 additions
and
3 deletions
| ... | @@ -79,7 +79,11 @@ async def get_redis(): | ... | @@ -79,7 +79,11 @@ async def get_redis(): |
| 79 | global redis_client | 79 | global redis_client |
| 80 | 80 | ||
| 81 | if redis_client is not None: | 81 | if redis_client is not None: |
| 82 | - return redis_client | 82 | + try: |
| 83 | + redis_client.ping() | ||
| 84 | + return redis_client | ||
| 85 | + except: | ||
| 86 | + pass | ||
| 83 | 87 | ||
| 84 | with open("./docs/redis") as f: | 88 | with open("./docs/redis") as f: |
| 85 | redis_url = f.read().strip() | 89 | redis_url = f.read().strip() | ... | ... |
| ... | @@ -13,7 +13,7 @@ from sqlalchemy import ( | ... | @@ -13,7 +13,7 @@ from sqlalchemy import ( |
| 13 | class UbigeoResumenes(Base): | 13 | class UbigeoResumenes(Base): |
| 14 | __tablename__ = "ubigeo_resumenes" | 14 | __tablename__ = "ubigeo_resumenes" |
| 15 | __table_args__ = ( | 15 | __table_args__ = ( |
| 16 | - Index("idx_proyecto_resumenes_gestion", "gestion"), | 16 | + Index("idx_ubigeo_resumenes_gestion", "gestion"), |
| 17 | {"schema": "web"}, | 17 | {"schema": "web"}, |
| 18 | ) | 18 | ) |
| 19 | 19 | ... | ... |
| ... | @@ -9,7 +9,7 @@ from presupuestov1.routers._decorators import not_found | ... | @@ -9,7 +9,7 @@ from presupuestov1.routers._decorators import not_found |
| 9 | 9 | ||
| 10 | 10 | ||
| 11 | router = APIRouter( | 11 | router = APIRouter( |
| 12 | - prefix='/_diario', | 12 | + prefix='/diario', |
| 13 | tags=['diario'], | 13 | tags=['diario'], |
| 14 | ) | 14 | ) |
| 15 | 15 | ... | ... |
-
Please register or login to post a comment