added variable types to function

This commit is contained in:
Enju Aihara 2022-03-31 17:17:11 +02:00
parent f45e42cd50
commit e3bca69eaf

View file

@ -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():