cleanup/rm

This commit is contained in:
2025-02-18 14:37:37 -05:00
parent a1484c572c
commit 119f40daf8
24 changed files with 5 additions and 56 deletions

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import logging
import regex
from regex import Pattern

View File

@ -1,11 +1,6 @@
#!/usr/bin/env python3.12
from typing import Optional
from pydantic import BaseModel
# Constructors
# TODO: REORDER
"""
Karma
"""

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import os
import logging
import time

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import importlib
import traceback
from typing import Optional, Union

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import logging
import os
import urllib.parse

View File

@ -1,7 +1,4 @@
#!/usr/bin/env python3.12
import time
import logging
from typing import Optional
from fastapi import FastAPI
from fastapi.responses import JSONResponse
@ -86,7 +83,7 @@ class Misc(FastAPI):
"""
Homepage Lyrics Widget Handler
"""
found_counts: dict = await self.redis_cache.get_found_counts()
found_counts: Optional[dict] = await self.redis_cache.get_found_counts()
if not isinstance(found_counts, dict):
return JSONResponse(status_code=500, content={
'err': True,

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import logging
import traceback
import time

View File

@ -1,9 +1,3 @@
#!/usr/bin/env python3.12
"""
Radio Utils
"""
import logging
import traceback
import time

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import os
import random
from typing import LiteralString, Optional, Union

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import os
import aiosqlite as sqlite3
from fastapi import FastAPI

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import logging
from typing import Optional
from fastapi import FastAPI, Request, HTTPException

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python3.12
import importlib
from fastapi import FastAPI
from fastapi.responses import JSONResponse