Spaces:
Running
Running
Fix typo os_W_OK -> os.W_OK
Browse files- app_v2_entry.py +2 -1
app_v2_entry.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
"""VNEWS v2 Entry Point - with fast bongda proxy + rewrite endpoints + multilingual TTS"""
|
| 2 |
import sys, os
|
| 3 |
from datetime import timedelta
|
|
@@ -680,7 +681,7 @@ def _ht(topic:str=Query(...),page:int=Query(default=0)):
|
|
| 680 |
@app.get('/api/categories')
|
| 681 |
def _cat():return JSONResponse([])
|
| 682 |
@app.get('/api/storage_status')
|
| 683 |
-
def _st():return JSONResponse({'persistent':os.path.isdir('/data') and os.access('/data',
|
| 684 |
# ===== SHARE HELPERS: render content pages for shared links =====
|
| 685 |
def _render_slides_page(post, safe_title, safe_img, safe_url):
|
| 686 |
slides = post.get('slides', [])
|
|
|
|
| 1 |
+
```python
|
| 2 |
"""VNEWS v2 Entry Point - with fast bongda proxy + rewrite endpoints + multilingual TTS"""
|
| 3 |
import sys, os
|
| 4 |
from datetime import timedelta
|
|
|
|
| 681 |
@app.get('/api/categories')
|
| 682 |
def _cat():return JSONResponse([])
|
| 683 |
@app.get('/api/storage_status')
|
| 684 |
+
def _st():return JSONResponse({'persistent':os.path.isdir('/data') and os.access('/data',os.W_OK)})
|
| 685 |
# ===== SHARE HELPERS: render content pages for shared links =====
|
| 686 |
def _render_slides_page(post, safe_title, safe_img, safe_url):
|
| 687 |
slides = post.get('slides', [])
|