mirror of
https://git.kiwifarms.net/mint/fedi-block-api.git
synced 2024-10-23 01:29:05 +00:00
added variable types to function
This commit is contained in:
parent
f45e42cd50
commit
e3bca69eaf
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ from json import loads
|
|||
from hashlib import sha256
|
||||
import sqlite3
|
||||
|
||||
def get_type(domain):
|
||||
def get_type(domain: str) -> str:
|
||||
try:
|
||||
res = get("https://"+domain, timeout=5)
|
||||
if "pleroma" in res.text.lower():
|
||||
|
|
Loading…
Reference in a new issue